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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

How to get a list of all MS365 AAD users in power query?

Dear,

I am searching for a solution for months: I want to retrieve all AAD users (with their details: first name, last name, mail address,...) to be able to link them to external data in order to get RowLevelSecurity working. I need this since the external data does not contain the mail address of the user that should be able to access rows, but only the first and last name.

Using Graph API is not recommended by MS... but what is recommended then?

I have been looking for ages now and I am getting frustrated that such a simple task would involve scripting (getting the data through powershell and export to csv and import the csv in power query)...

Anyone who has an "easy" way to achieve this?

Thanks,

Koen

2 REPLIES 2
Anonymous
Not applicable

Just use the Active Directory connector and the Organizational of Person table.

 

--Nate

isn't that only for on-premise AD and requires an on-premise data gateway? We only have an Azure Active Directory and don't have a on-premise data gateway...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Kudoed Authors