Skip to content

Commit 3305604

Browse files
authored
Merge pull request #111655 from curtand/quick0416
[Azure AD roles] fix PS in admin units
2 parents b2c33fc + c582514 commit 3305604

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/active-directory/users-groups-roles/roles-admin-units-add-manage-users.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ You can assign users to administrative units in two ways.
4646

4747
### PowerShell
4848

49-
$administrative unitObj = Get-AzureADAdministrativeUnit -Filter "displayname eq 'Test administrative unit 2'"
49+
$administrativeunitObj = Get-AzureADAdministrativeUnit -Filter "displayname eq 'Test administrative unit 2'"
5050
$UserObj = Get-AzureADUser -Filter "UserPrincipalName eq '[email protected]'"
51-
Add-AzureADAdministrativeUnitMember -ObjectId $administrative unitObj.ObjectId -RefObjectId $UserObj.ObjectId
51+
Add-AzureADAdministrativeUnitMember -ObjectId $administrativeunitObj.ObjectId -RefObjectId $UserObj.ObjectId
5252

53-
In the above example, the cmdlet Add-AzureADAdministrativeUnitMember is used to add the user to the administrative unit. The object ID of the Administrative Unit where user is to be added and the object ID of the user who is to be added are taken as argument. The highlighted section may be changed as required for the specific environment.
53+
In the above example, the cmdlet Add-AzureADAdministrativeUnitMember is used to add the user to the administrative unit. The object ID of the administrative unit where user is to be added and the object ID of the user who is to be added are taken as argument. The highlighted section may be changed as required for the specific environment.
5454

5555
### Microsoft Graph
5656

0 commit comments

Comments
 (0)