Skip to content

Commit 7d3050f

Browse files
authored
Removed deprecated AAD Graph API Permissions
1 parent c0a1e42 commit 7d3050f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ Now that you've enabled access for users in an Azure AD tenant, you can:
104104
* Control product visibility using Azure AD groups.
105105

106106
Follow these steps to grant:
107-
* `Directory.Read.All` application permission for Microsoft Graph API and Azure Active Directory Graph API.
108-
* `User.Read` delegated permission for Microsoft Graph API.
107+
* `Directory.Read.All` **application** permission for Microsoft Graph API.
108+
* `User.Read` **delegated** permission for Microsoft Graph API.
109109

110110
1. Update the first 3 lines of the following Azure CLI script to match your environment and run it.
111111

@@ -117,7 +117,7 @@ Follow these steps to grant:
117117
az login
118118
az account set --subscription $subId
119119
#Assign the following permissions: Microsoft Graph Delegated Permission: User.Read, Microsoft Graph Application Permission: Directory.ReadAll, Azure Active Directory Graph Application Permission: Directory.ReadAll (legacy)
120-
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'},{'resourceAccess': [{'id': '5778995a-e1bf-45b8-affa-663a9f3f4d04','type': 'Role'}], 'resourceAppId': '00000002-0000-0000-c000-000000000000'}]}"
120+
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'}]}"
121121
```
122122

123123
2. Log out and log back in to the Azure portal.

0 commit comments

Comments
 (0)