Forum Discussion
Error 'API is not accessible for application' when I run API GetAppUsersAsAdmin on Postman
- 4 years ago
I solved it, I enabled the option "Allow service principals to use read-only admin APIs" in the menu Settings -> Admin Portal
Hi Anonymous , thanks for the support. I still have the problem
In Postman I get the relative token
and I use the token in the API PBI call, the appID I get it from the Power BI app URL, this URL is an example.
The two APIs need the admin grant, maybe that's the problem?
There are no Power BI admin-consent-required permissions set on this application
Hi CorradoPag ,
Yes, exactly. From the screenshot you provided, it looks like the required scope (Tenant.Read.All or Tenant.ReadWrite.All) to run that Admin REST API is not being met.
You can try to see if the desired result is returned after giving the appropriate permissions by referring to the documentation below.
Modifying Permissions of an Existing App Registration
Best Regards