Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 59b1a17

Browse files
committed
update scope in bulk create script
1 parent 3409466 commit 59b1a17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

5-AccessControl/2-call-api-groups/AppCreationScripts/BulkCreateGroups.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ Function ConfigureApplications {
7171

7272
Write-Host "Connecting to Microsoft Graph"
7373
if ($tenantId -eq "") {
74-
Connect-MgGraph -Scopes "User.Read Group.ReadWrite.All GroupMember.ReadWrite.All" -Environment $azureEnvironmentName
74+
Connect-MgGraph -Scopes "User.Read.All Group.ReadWrite.All GroupMember.ReadWrite.All" -Environment $azureEnvironmentName
7575
$tenantId = (Get-MgContext).TenantId
7676
}
7777
else {
78-
Connect-MgGraph -TenantId $tenantId -Scopes "User.Read Group.ReadWrite.All GroupMember.ReadWrite.All" -Environment $azureEnvironmentName
78+
Connect-MgGraph -TenantId $tenantId -Scopes "User.Read.All Group.ReadWrite.All GroupMember.ReadWrite.All" -Environment $azureEnvironmentName
7979
}
8080

8181
# Add user object Id here

0 commit comments

Comments
 (0)