Hello , Welcome to MS Q&A
The error AADSTS650053
occurs because application permissions like TeamsAppInstallation.ReadWriteForTeam.All
and Calendars.ReadBasic.All
do not support dynamic consent using the scope
parameter in the v2.0 /adminconsent
flow.
Application permissions must be pre-configured in the app registration and consented together by a tenant admin — they cannot be requested individually via
scope
Correct way of use:
- Either use below call for V1 endpoint: https://login.microsoftonline.com/{tenant}/adminconsent?client_id=6731de76-14a6-49ae-97bc-6eba6914391e&state=12345&redirect_uri=http://localhost/myapp/permissions
- Or use below call with V2 endpoint: https://login.microsoftonline.com/{tenant}/v2.0/adminconsent?client_id=6731de76-14a6-49ae-97bc-6eba6914391e&scope=https://graph.microsoft.com/.default&state=12345&redirect_uri=http://localhost/myapp/permissions
Do NOT USE:
&scope=https://graph.microsoft.com/TeamsAppInstallation.ReadWriteForTeam.All
This treats the scope as delegated, which is not valid for application permissions.
Microsoft Documentation
Pls let us know if further ques
Thanks
Deepanshu