File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
5-WebApp-AuthZ/5-2-Groups/AppCreationScripts Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ Function ConfigureApplications
233
233
# Add Required Resources Access (from 'webApp' to 'Microsoft Graph')
234
234
Write-Host " Getting access from 'webApp' to 'Microsoft Graph'"
235
235
$requiredPermissions = GetRequiredPermissions - applicationDisplayName " Microsoft Graph" `
236
- - requiredDelegatedPermissions " GroupMember.Read.All" `
236
+ - requiredDelegatedPermissions " User.Read| GroupMember.Read.All" `
237
237
238
238
$requiredResourcesAccess.Add ($requiredPermissions )
239
239
@@ -247,6 +247,15 @@ Function ConfigureApplications
247
247
$dictionary = @ { " ClientId" = $webAppAadApplication.AppId ;" TenantId" = $tenantId ;" Domain" = $tenantName ;" ClientSecret" = $webAppAppKey };
248
248
UpdateTextFile - configFilePath $configFile - dictionary $dictionary
249
249
250
+ Write-Host " "
251
+ Write-Host - ForegroundColor Green " ------------------------------------------------------------------------------------------------"
252
+ Write-Host " IMPORTANT: Please follow the instructions below to complete a few manual step(s) in the Azure portal" :
253
+ Write-Host " - For 'webApp'"
254
+ Write-Host " - Navigate to '$webAppPortalUrl '"
255
+ Write-Host " - Navigate to the API Permissions page and select 'Grant admin consent for (your tenant)'" - ForegroundColor Red
256
+
257
+ Write-Host - ForegroundColor Green " ------------------------------------------------------------------------------------------------"
258
+
250
259
Add-Content - Value " </tbody></table></body></html>" - Path createdApps.html
251
260
}
252
261
Original file line number Diff line number Diff line change 25
25
"RequiredResourcesAccess" : [
26
26
{
27
27
"Resource" : " Microsoft Graph" ,
28
- "DelegatedPermissions" : [ " GroupMember.Read.All" ]
28
+ "DelegatedPermissions" : [ " User.Read" , " GroupMember.Read.All" ]
29
+ }
30
+ ],
31
+ "ManualSteps" : [
32
+ {
33
+ "Comment" : " Navigate to the API Permissions page and select 'Grant admin consent for (your tenant)'"
29
34
}
30
35
]
31
36
}
You can’t perform that action at this time.
0 commit comments