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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Retrieve the userid when needed

Dear all,

 

I would like to generate automatically the AI Builder consumption report https://youtu.be/8l79x8THx6I

 

and create a new report with "converted" data with Power BI, since in this report, it gives the IDs (environment ID and user ID). For the Environment id i can create a mapping table. For the userid, it is more complicated to me.... how i can retrieve the ID of a user when it is mentioned in the report?

thank you

1 ACCEPTED SOLUTION
rubayatyasmin
Super User
Super User

Hi, @Anonymous 

 

use Graph API request. for example

GET https://graph.microsoft.com/v1.0/users

The response is a JSON object that contains user information. It will have many fields, but the ones you are interested in are id and userPrincipalName.

see this document. Use the Microsoft Graph API - Microsoft Graph | Microsoft Learn

 

rubayatyasmin_0-1689517080227.png

 


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


View solution in original post

1 REPLY 1
rubayatyasmin
Super User
Super User

Hi, @Anonymous 

 

use Graph API request. for example

GET https://graph.microsoft.com/v1.0/users

The response is a JSON object that contains user information. It will have many fields, but the ones you are interested in are id and userPrincipalName.

see this document. Use the Microsoft Graph API - Microsoft Graph | Microsoft Learn

 

rubayatyasmin_0-1689517080227.png

 


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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