File tree 1 file changed +5
-9
lines changed
docs-conceptual/azureadps-2.0
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -40,15 +40,11 @@ New-AzureADUser -UserPrincipalName "EastCoastUserAdmin@$initialDomain" -DisplayN
40
40
New-AzureADUser -UserPrincipalName "EastCoastHelpdeskAdmin@$initialDomain" -DisplayName "EastCoastPasswordAdmin" -PasswordProfile $passwordProfile -UsageLocation "US" -AccountEnabled $true -MailNickName "EastCoastPasswordAdmin"
41
41
New-AzureADUser -UserPrincipalName "MobileUserAdmin@$initialDomain" -DisplayName "MobileUserAdmin" -PasswordProfile $passwordProfile -UsageLocation "US" -AccountEnabled $true -MailNickName "MobileUserAdmin"
42
42
43
- # Enable the Helpdesk Administrator Role
44
- $helpDeskAdminRole = New-Object Microsoft.Open.AzureAD.Model.DirectoryRole
45
- $helpDeskAdminRole.RoleTemplateId = "729827e3-9c14-49f7-bb1b-9608f156bbb8"
46
- Enable-AzureADDirectoryRole -DirectoryRole $helpDeskAdminRole
47
-
48
- # Enable the User Account Administrator Role
49
- $userAdminAdminRole = New-Object Microsoft.Open.AzureAD.Model.DirectoryRole
50
- $userAdminAdminRole.RoleTemplateId = "fe930be7-5e62-47db-91af-98c3a49a38b1"
51
- Enable-AzureADDirectoryRole -DirectoryRole $userAdminAdminRole
43
+ # Enable the Helpdesk Administrator Role using the templateId GUID for the role
44
+ Enable-AzureADDirectoryRole -RoleTemplateId "729827e3-9c14-49f7-bb1b-9608f156bbb8"
45
+
46
+ # Enable the User Account Administrator Role using the templateId GUID for the role
47
+ Enable-AzureADDirectoryRole -RoleTemplateId "fe930be7-5e62-47db-91af-98c3a49a38b1"
52
48
53
49
```
54
50
You can’t perform that action at this time.
0 commit comments