diff --git a/sample-queries/sample-queries.json b/sample-queries/sample-queries.json index 84152306..7851b499 100644 --- a/sample-queries/sample-queries.json +++ b/sample-queries/sample-queries.json @@ -1490,6 +1490,70 @@ "tip": "This query requires your user ID and another user's ID. Use the following calls to get the user IDs: 1) GET https://graph.microsoft.com/v1.0/me/ 2) GET https://graph.microsoft.com/v1.0/users", "skipTest": false }, + { + "id": "35f6a1b1-d9a7-43c3-8c1c-b0ca1dffe91c", + "category": "Teamwork and communications", + "method": "GET", + "humanName": "list Teams user configurations", + "requestUrl": "/v1.0/admin/teams/userConfigurations", + "docLink": "https://learn.microsoft.com/en-us/graph/api/teamsadministration-teamsadminroot-list-userconfigurations?view=graph-rest-1.0", + "tip": "This query requires the TeamsUserConfiguration.Read.All permission", + "skipTest": false + }, + { + "id": "005ba36b-3fc5-48b8-843e-790d0819bf2c", + "category": "Teamwork and communications", + "method": "GET", + "humanName": "get Teams user configuration", + "requestUrl": "/v1.0/admin/teams/userConfigurations/{teamsUserConfigurationId}", + "docLink": "https://learn.microsoft.com/en-us/graph/api/teamsadministration-teamsuserconfiguration-get?view=graph-rest-1.0", + "tip": "This query requires valid user id and valid permission", + "skipTest": false + }, + { + "id": "3543ba48-7206-4959-9a66-afe42d3e04f6", + "category": "Teamwork and communications", + "method": "POST", + "humanName": "assign Teams policy to user", + "requestUrl": "/v1.0/admin/teams/policy/userAssignments/assign", + "docLink": "https://learn.microsoft.com/en-us/graph/api/teamsadministration-teamspolicyuserassignment-assign?view=graph-rest-1.0", + "headers": [ + { + "name": "Content-Type", + "value": "application/json" + } + ], + "postBody": "{\r\n \"value\": [\r\n {\r\n \"@odata.type\": \"#microsoft.graph.teamsAdministration.teamsPolicyUserAssignment\",\r\n \"userId\": \"5c802b19-3600-83f1-1767-7b9edc7f38ab\",\r\n \"policyType\": \"TeamsMeetingPolicy\",\r\n \"policyId\": \"VnMAaN3X2X1B9tEHx1CJWfC76PSaKEzA4NoUuqIMRUo\"\r\n }\r\n ]\r\n}", + "tip": "This query requires valid user id, policy type, policy id, and the TeamsPolicyUserAssign.ReadWrite.All permission", + "skipTest": false + }, + { + "id": "5bf910fe-0a9c-439a-af0a-0ae0d8c97006", + "category": "Teamwork and communications", + "method": "POST", + "humanName": "unassign Teams policy from user", + "requestUrl": "/v1.0/admin/teams/policy/userAssignments/unassign", + "docLink": "https://learn.microsoft.com/en-us/graph/api/teamsadministration-teamspolicyuserassignment-unassign?view=graph-rest-1.0", + "headers": [ + { + "name": "Content-Type", + "value": "application/json" + } + ], + "postBody": "{\r\n \"value\": [\r\n {\r\n \"@odata.type\": \"#microsoft.graph.teamsAdministration.teamsPolicyUserAssignment\",\r\n \"userId\": \"5c802b19-3600-83f1-1767-7b9edc7f38ab\",\r\n \"policyType\": \"TeamsMeetingPolicy\"\r\n }\r\n ]\r\n}", + "tip": "This query requires valid user id, policy type, and the TeamsPolicyUserAssign.ReadWrite.All permission", + "skipTest": false + }, + { + "id": "19957976-afb4-499b-9fa7-4d76b7ad01d0", + "category": "Teamwork and communications", + "method": "GET", + "humanName": "get Teams policy ID by name and type", + "requestUrl": "/v1.0/admin/teams/policy/getPolicyId(type='{policyType}',name='{policyName}')", + "docLink": "https://learn.microsoft.com/en-us/graph/api/teamsadministration-teamspolicyassignment-getpolicyid?view=graph-rest-1.0", + "tip": "This query requires valid policy type and policy name, and the TeamsPolicyUserAssign.ReadWrite.All permission", + "skipTest": false + }, { "id": "d8a3cd75-6ddf-4215-89de-3c2dab6b9585", "category": "Microsoft Teams (beta)",