Forum Discussion
GetUserArtifactAccessAsAdmin API how do you easily get userGraphID
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:
Xiaoxin Sheng
- DebbieE4 years agoCommunity Champion
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?
- Anonymous4 years agoNot 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:
Regards,
Xiaoxin Sheng
- DebbieE4 years agoCommunity Champion
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