Forum Discussion
Power BI - Admin - Apps GetAppUsersAsAdmin - API issue
API GET https://api.powerbi.com/v1.0/myorg/admin/apps/{appId}/users - is returning 404-Not Found error
6 Replies
- jennrattenSuper User
You should replace {appId} with the actual appId you are trying to query, like the example below. The 404 error means the resource being queried cannot be found.
GET https://api.powerbi.com/v1.0/myorg/admin/apps/f089354e-8366-4e18-aea3-4cb4a3a50b48/usersResponse
{ "value": [ { "displayName": "John Nick", "emailAddress": "[email protected]", "appUserAccessRight": "ReadExplore", "identifier": "[email protected]", "graphId": "3fadb6e4-130c-4a8f-aeac-416e38b66756", "principalType": "User" } ] } - narmadaNew Member
Thank you for the reply.
I specified appId as - cf6bac1b-c760-473b-96c1-6ad7a1d056ed. It still gives 404 error.
Calling API as -
https://api.powerbi.com/v1.0/myorg/admin/apps/cf6bac1b-c760-473b-96c1-6ad7a1d056ed/users
- jennrattenSuper User
Have you verified that the app ID you are using is correct? Do you have the required permissions and scopes to access this?
- The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) or authenticate using a service principal.
- Delegated permissions are supported.
- narmadaNew Member
Thanks Jennratten for the reply.
The account has necessary permissions because below API call is working for the account I am using :-
How to check, I am using the correct appID ?
https://api.powerbi.com/v1.0/myorg/admin/apps/cf6bac1b-c760-473b-96c1-6ad7a1d056ed/users
- jennrattenSuper User
You are very welcome. 🙂 In the Power BI Service, open up the app you are wanting to query, then in the address bar, copy the portion of the URL that appears between apps/ and /reports, as shown by the red box in the snip below. When I copy this text, go to the web page below, click try-it, paste the text into the appId parameter field and click run, I get a response code 200 and can see the users in the json response body.
Admin - Apps GetAppUsersAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Docs
- AnonymousNot applicable
Hi narmada ,
Did jennratten 's reply help you?
If it helps, kindly Accept it as the solution. More people will benefit from it.
The permission on this is as follows
- The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) or authenticate using a service principal.
- Delegated permissions are supported.
And the limilation is Maximum 200 requests per hour.
Best Regards,
Stephen Tao