question

83182741 avatar image
0 Votes"
83182741 asked amanpreetsingh-msft answered

About the scope name of Azure AD app

When adding the scope of the application registered in Azure AD, the maximum number of characters in the scope name was displayed as 40 characters or less.

I know that I need to set API permissions and scope to use the Microsoft Graph API, and I need to set the name of the permission in the scope name, but OnPremisesPublishingProfiles.ReadWrite.All is specified in the scope name Does that mean you can't?
Or please let me know if there is another way to add it.

azure-active-directoryazure-ad-graph
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered

Hi @83182741 • Thank you for reaching out.

The 40 characters limit is for the custom scopes that you add under the Applications which are Exposed as API by setting App ID URI, as shown below:

132647-image.png

However, this limit doesn't apply to the built-in scopes provided with 1st party APIs, such as Graph API. You can add these scopes, regardless of whether they contain more than 40 characters, under API permissions blade of your application without any issues, as highlighted in the screenshot below:

132589-image.png


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


image.png (55.4 KiB)
image.png (11.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.