File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
5-AccessControl/2-call-api-groups/AppCreationScripts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments