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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
DebbieE
Community Champion
Community Champion

GetUserArtifactAccessAsAdmin API how do you easily get userGraphID

I have been working through this months updates

 

https://powerbi.microsoft.com/en-us/blog/power-bi-october-2021-feature-summary/

 

And got to New API for determining who has access to what Power BI assets 

 

Which takes me to https://docs.microsoft.com/en-gb/rest/api/power-bi/admin/users-get-user-artifact-access-as-admin

 

and  userGraphId 

The graph ID of user

 

But there is no where in the doc that tells you how to get the userGraphID. I have no clue how to find them and what access I need to have to get this?

Im a Power BI Admin so I am find to run the API but I have yet to find anything to help me figure out how to get the userGraphId If anyone could shed any light on that that would be great

 

5 REPLIES 5
Anonymous
Not applicable

Hi @DebbieE,

I suppose this 'userGraphId' may mean the corresponding graph API user id of the current power bi account.
Currently, this rest API seems still in preview version so related operation seems not fully assigned to power bi rest API side. I'd like to suggest you use graph API to get corresponding information and use the result id to test.

How to Get user data using Microsoft graph API programmatically - Stack Overflow

In addition, you can also take a look at the following blog if helps:

Announcing Admin APIs to Determine Access Rights (Public Preview) | Microsoft Power BI Blog | Micros...
Regards,

Xiaoxin Sheng

Oh my goodness I am completely lost with those. I would have thought this would have been much easier cince it was in october release. 

 

I have had a read of this and still have no idea how or where to get userGraphId?

Anonymous
Not applicable

Hi @DebbieE,

I check the document and found the 'scanner admin API' (https://api.powerbi.com/v1.0/myorg/admin/workspaces/getInfo?getArtifactUsers=true) can be used to list user information which includes the 'graphId' that 'GetUserArtifactAccessAsAdmin API' API required:

Announcing Admin APIs to Determine Access Rights (Public Preview) | Microsoft Power BI Blog | Micros...

Regards,

Xiaoxin Sheng

I have been told over on the issues Forum that the usergraph ID is the Object ID which you can get by going to Azure AAD - Users and grabbing the object ID from here so this is starting to get confusing with conflicting information

 

I also can't access your link HTTP ERROR 403

Anonymous
Not applicable

HI @DebbieE,

Which link did you face issue 403? Have you taken a look at the blog about read-only scanner Admin APIs?

Announcing new Admin APIs and Service Principal authentication to make for better tenant metadata sc...
Regards,

Xiaoxin Sheng 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.