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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.