Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
narmada
New Member

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 6
Anonymous
Not 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

 

narmada
New 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

Thanks Jennratten for the reply.

 

The account has necessary permissions because below API call is working for the account I am using :-

https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime='2022-01-03T00:00:00'&endDateT...

 

How to check, I am using the correct appID ?

https://api.powerbi.com/v1.0/myorg/admin/apps/cf6bac1b-c760-473b-96c1-6ad7a1d056ed/users

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

 

jennratten_0-1641407796767.png

 

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.
jennratten
Super User
Super 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/users

 

Response

{
  "value": [
    {
      "displayName": "John Nick",
      "emailAddress": "john@contoso.com",
      "appUserAccessRight": "ReadExplore",
      "identifier": "john@contoso.com",
      "graphId": "3fadb6e4-130c-4a8f-aeac-416e38b66756",
      "principalType": "User"
    }
  ]
}

 

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.