Skip to content

Commit 1db70e5

Browse files
Merge pull request #1428 from praspatil05/pp/teams-user-config-samples
Add Teams User Configuration sample queries
2 parents 080b091 + 1c79139 commit 1db70e5

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

sample-queries/sample-queries.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,70 @@
14901490
"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",
14911491
"skipTest": false
14921492
},
1493+
{
1494+
"id": "35f6a1b1-d9a7-43c3-8c1c-b0ca1dffe91c",
1495+
"category": "Teamwork and communications",
1496+
"method": "GET",
1497+
"humanName": "list Teams user configurations",
1498+
"requestUrl": "/v1.0/admin/teams/userConfigurations",
1499+
"docLink": "https://learn.microsoft.com/en-us/graph/api/teamsadministration-teamsadminroot-list-userconfigurations?view=graph-rest-1.0",
1500+
"tip": "This query requires the TeamsUserConfiguration.Read.All permission",
1501+
"skipTest": false
1502+
},
1503+
{
1504+
"id": "005ba36b-3fc5-48b8-843e-790d0819bf2c",
1505+
"category": "Teamwork and communications",
1506+
"method": "GET",
1507+
"humanName": "get Teams user configuration",
1508+
"requestUrl": "/v1.0/admin/teams/userConfigurations/{teamsUserConfigurationId}",
1509+
"docLink": "https://learn.microsoft.com/en-us/graph/api/teamsadministration-teamsuserconfiguration-get?view=graph-rest-1.0",
1510+
"tip": "This query requires valid user id and valid permission",
1511+
"skipTest": false
1512+
},
1513+
{
1514+
"id": "3543ba48-7206-4959-9a66-afe42d3e04f6",
1515+
"category": "Teamwork and communications",
1516+
"method": "POST",
1517+
"humanName": "assign Teams policy to user",
1518+
"requestUrl": "/v1.0/admin/teams/policy/userAssignments/assign",
1519+
"docLink": "https://learn.microsoft.com/en-us/graph/api/teamsadministration-teamspolicyuserassignment-assign?view=graph-rest-1.0",
1520+
"headers": [
1521+
{
1522+
"name": "Content-Type",
1523+
"value": "application/json"
1524+
}
1525+
],
1526+
"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}",
1527+
"tip": "This query requires valid user id, policy type, policy id, and the TeamsPolicyUserAssign.ReadWrite.All permission",
1528+
"skipTest": false
1529+
},
1530+
{
1531+
"id": "5bf910fe-0a9c-439a-af0a-0ae0d8c97006",
1532+
"category": "Teamwork and communications",
1533+
"method": "POST",
1534+
"humanName": "unassign Teams policy from user",
1535+
"requestUrl": "/v1.0/admin/teams/policy/userAssignments/unassign",
1536+
"docLink": "https://learn.microsoft.com/en-us/graph/api/teamsadministration-teamspolicyuserassignment-unassign?view=graph-rest-1.0",
1537+
"headers": [
1538+
{
1539+
"name": "Content-Type",
1540+
"value": "application/json"
1541+
}
1542+
],
1543+
"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}",
1544+
"tip": "This query requires valid user id, policy type, and the TeamsPolicyUserAssign.ReadWrite.All permission",
1545+
"skipTest": false
1546+
},
1547+
{
1548+
"id": "19957976-afb4-499b-9fa7-4d76b7ad01d0",
1549+
"category": "Teamwork and communications",
1550+
"method": "GET",
1551+
"humanName": "get Teams policy ID by name and type",
1552+
"requestUrl": "/v1.0/admin/teams/policy/getPolicyId(type='{policyType}',name='{policyName}')",
1553+
"docLink": "https://learn.microsoft.com/en-us/graph/api/teamsadministration-teamspolicyassignment-getpolicyid?view=graph-rest-1.0",
1554+
"tip": "This query requires valid policy type and policy name, and the TeamsPolicyUserAssign.ReadWrite.All permission",
1555+
"skipTest": false
1556+
},
14931557
{
14941558
"id": "d8a3cd75-6ddf-4215-89de-3c2dab6b9585",
14951559
"category": "Microsoft Teams (beta)",

0 commit comments

Comments
 (0)