File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/active-directory/roles Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ ms.service: active-directory
8
8
ms.workload : identity
9
9
ms.subservice : roles
10
10
ms.topic : how-to
11
- ms.date : 05/14 /2021
11
+ ms.date : 10/06 /2021
12
12
ms.author : rolyon
13
13
ms.reviewer : vincesm
14
14
ms.custom : it-pro
@@ -99,7 +99,7 @@ $appRegistration = Get-AzureADApplication -Filter "displayName eq 'f/128 Filter
99
99
$resourceScope = '/' + $appRegistration.objectId
100
100
101
101
# Create a scoped role assignment
102
- $roleAssignment = New-AzureADMSRoleAssignment -ResourceScope $resourceScope -RoleDefinitionId $roleDefinition.Id -PrincipalId $user.objectId
102
+ $roleAssignment = New-AzureADMSRoleAssignment -DirectoryScopeId $resourceScope -RoleDefinitionId $roleDefinition.Id -PrincipalId $user.objectId
103
103
```
104
104
105
105
## Create a role with the Microsoft Graph API
You can’t perform that action at this time.
0 commit comments