Forum Discussion
App registration: Token only works for admin api
Hi h4tt3n ,
Base on your description, it sounds like you're encountering an issue with API access permissions. The token works for admin-level REST API bt not for normal REST API. Please check if grant the proper API permission and grant admin consent to those permissions.
1. Go to Azure Portal, navigate to Microsoft Entra ID -> App registrations -> Find your registered app. Select API permissions to add the neccessary API permission: Dataset.ReadWrite.All or Dataset.Read.All.
2. Grant admin consent to the above permissions
Best Regards
- h4tt3n1 year agoHelper V
Hi Anonymous
There are some noticeable differences between the menu in your screenshot and the menu I am presented with. The grant admin consent button is grayed out. Status column is empty. Also, there is a warning and notice at the top of the screen. I am unsure what to make of them.
The full text of the "admin consent required" notice is:
The "Admin consent required" column shows the default value for an organization. However, user consent can be customized per permission, user, or app. This column may not reflect the value in your organization, or in organizations where this app will be used. Learn more
What are your thoughts?
Cheers, Mike
- Anonymous1 year agoNot applicable
Hi h4tt3n ,
You can refer the following link to get it:
Grant tenant-wide admin consent to an application - Microsoft Entra ID | Microsoft Learn
Best Regards