Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Query Active Directory for extended attributes

I have managed to query active directory succesfully but cannot find extended attributes (extensionAttribute1,extensionAttribute2,etc) anywhere, ¿which table contains those attributes?.


Thanks in advance.

Regular Visitor

This values are not visible for e.g. domain users accounts.


I could see them with domain admin rights:

  1. Logged on to Windows as domain admin,
  2. started Power BI Desktop, 
  3. opened Active Directory,
  4. selected "table" "user"
  5. msExchCustomAttributes.msExchExtensionCustomAttribute1 - n
Community Support
Community Support

Hi @edepaz ,

We can connect to Active Directory from Power  BI Desktop following the instructions in this blog, load user table and computer table into Desktop.

As per this similar blog and similar thread, user account status and computer status are controlled by the userAccountControl attribute, you should be able to expand userAccountControl column from user table and computer table in Power BI Desktop, then check the values.



Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Thank you but I have connected with Active Directory without any problem, my issue is I cannot find the way to include the extended attributes (extensionAttribute1,extensionAttribute2,...) in a query.

@edepazDid you find a solution to this problem? I'm struggling with the same thing.

Sorry, I couldn't find any solution.

hello , 2 years after does anyone knows how to get these AD Extended attributes, I can't find them in any table



got it ! extensionAttributeXX are in table msExchCustomAttributes

Helpful resources


2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.

Top Solution Authors
Top Kudoed Authors