You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"principalId": "<provide objectId of the user obtained above>",
114
115
"roleDefinitionId": "<provide templateId of the role obtained above>",
115
116
"directoryScopeId": "/"
@@ -190,29 +191,30 @@ Follow these instructions to assign a role at administrative unit scope using th
190
191
191
192
1. Sign in to the [Graph Explorer](https://aka.ms/ge).
192
193
193
-
1. Use [List user](/graph/api/user-list) API to get the user.
194
+
1. Use [List users](/graph/api/user-list) API to get the user.
194
195
195
-
```HTTP
196
-
GET https://graph.microsoft.com/beta/users?$filter=userPrincipalName eq '[email protected]'
196
+
```http
197
+
GET https://graph.microsoft.com/v1.0/users?$filter=userPrincipalName eq '[email protected]'
197
198
```
198
199
199
-
1. Use the [List roleDefinitions](/graph/api/rbacapplication-list-roledefinitions) API to get the role you want to assign.
200
+
1. Use the [List unifiedRoleDefinitions](/graph/api/rbacapplication-list-roledefinitions) API to get the role you want to assign.
200
201
201
-
```HTTP
202
-
GET https://graph.microsoft.com/beta/rolemanagement/directory/roleDefinitions?$filter=displayName eq 'User Administrator'
202
+
```http
203
+
GET https://graph.microsoft.com/v1.0/rolemanagement/directory/roleDefinitions?$filter=displayName eq 'User Administrator'
203
204
```
204
205
205
206
1. Use the [List administrativeUnits](/graph/api/administrativeunit-list) API to get the administrative unit you want the role assignment to be scoped to.
206
207
207
-
```HTTP
208
-
GET https://graph.microsoft.com/beta/administrativeUnits?$filter=displayName eq 'Seattle Admin Unit'
208
+
```http
209
+
GET https://graph.microsoft.com/v1.0/directory/administrativeUnits?$filter=displayName eq 'Seattle Admin Unit'
209
210
```
210
211
211
-
1. Use the [Create roleAssignments](/graph/api/rbacapplication-post-roleassignments) API to assign the role.
212
+
1. Use the [Create unifiedRoleAssignment](/graph/api/rbacapplication-post-roleassignments) API to assign the role.
212
213
213
-
```HTTP
214
-
POST https://graph.microsoft.com/beta/roleManagement/directory/roleAssignments
214
+
```http
215
+
POST https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments
0 commit comments