Skip to content

Commit c7eb0f6

Browse files
authored
[APIM] Remove Directory.Read.All from required AAD permissions
Fixes https://dev.azure.com/mseng/TechnicalContent/_workitems/edit/1973079
1 parent a18e59d commit c7eb0f6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

articles/api-management/api-management-howto-aad.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ Now that you've enabled access for users in an Azure AD tenant, you can:
149149
* Control product visibility using Azure AD groups.
150150

151151
Follow these steps to grant:
152-
* `Directory.Read.All` **application** permission for Microsoft Graph API.
153152
* `User.Read` **delegated** permission for Microsoft Graph API.
154153

155154
1. Update the first 3 lines of the following Azure CLI script to match your environment and run it.
@@ -161,8 +160,8 @@ Follow these steps to grant:
161160
#Login and Set the Subscription
162161
az login
163162
az account set --subscription $subId
164-
#Assign the following permissions: Microsoft Graph Delegated Permission: User.Read, Microsoft Graph Application Permission: Directory.ReadAll
165-
az rest --method PATCH --uri "https://graph.microsoft.com/v1.0/$($tenantId)/applications/$($appObjectID)" --body "{'requiredResourceAccess':[{'resourceAccess': [{'id': 'e1fe6dd8-ba31-4d61-89e7-88639da4683d','type': 'Scope'},{'id': '7ab1d382-f21e-4acd-a863-ba3e13f7da61','type': 'Role'}],'resourceAppId': '00000003-0000-0000-c000-000000000000'}]}"
163+
#Assign the following permission: Microsoft Graph Delegated Permission: User.Read
164+
az rest --method PATCH --uri "https://graph.microsoft.com/v1.0/$($tenantId)/applications/$($appObjectID)" --body "{'requiredResourceAccess':[{'resourceAccess': [{'id': 'e1fe6dd8-ba31-4d61-89e7-88639da4683d','type': 'Scope'}],'resourceAppId': '00000003-0000-0000-c000-000000000000'}]}"
166165
```
167166

168167
1. Sign out and sign back in to the Azure portal.

0 commit comments

Comments
 (0)