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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
JLaine
Helper I
Helper I

Import Global Address List?

Hello Power BI people !

As an inexperienced Power BI user, I can't seem to figure this one out so....

 

How can I import our company's Global Address List (as seen in Outlook and other Office apps) as a table into Power BI?  What power Query would do this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

In this M code, replace "CompanyDomain.com" with whatever your domain is, in quotes, except for the Step Name CompanyDomain.com, which is without quotes, and the user step, which CompanyDomain.com is entered without quotes.

 

let
Source = ActiveDirectory.Domains("CompanyDomain.com"),
CompanyDomain.com = Source{[Domain = "CompanyDomain.com"]}[Object Categories],
user = CompanyDomain.com{[Category = "user"]}[Objects],
#"Removed Other Columns" = Table.SelectColumns(user, {"displayName", "user", "organizationalPerson"}),
#"Expanded organizationalPerson" = Table.ExpandRecordColumn(#"Removed Other Columns", "organizationalPerson", {"department"}, {"department"}),
#"Expanded user 1" = Table.ExpandRecordColumn(#"Expanded organizationalPerson", "user", {"mail"}, {"mail"})
in
#"Expanded user 1"

 

--Nate

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

I don't think you'll find a table in the active directory that is specifically address book. However if you go to the User section, then expand Organizational Person, then expand User and Mail. person records you will find everybody's name and email address as a record. Select those columns and records, expand them, and Remove Other Columns. You should then have a column of all names and a column of all email addresses. 

--Nate

 

--Nate

Thanks.  I found the person table, and I appears to contain most of what I need, but I also need the department or group that person is in.  I foudn a table named 'msEchangeDepartment' but it was an empty table.  Do you know which table woudl contain this info?

Anonymous
Not applicable

In this M code, replace "CompanyDomain.com" with whatever your domain is, in quotes, except for the Step Name CompanyDomain.com, which is without quotes, and the user step, which CompanyDomain.com is entered without quotes.

 

let
Source = ActiveDirectory.Domains("CompanyDomain.com"),
CompanyDomain.com = Source{[Domain = "CompanyDomain.com"]}[Object Categories],
user = CompanyDomain.com{[Category = "user"]}[Objects],
#"Removed Other Columns" = Table.SelectColumns(user, {"displayName", "user", "organizationalPerson"}),
#"Expanded organizationalPerson" = Table.ExpandRecordColumn(#"Removed Other Columns", "organizationalPerson", {"department"}, {"department"}),
#"Expanded user 1" = Table.ExpandRecordColumn(#"Expanded organizationalPerson", "user", {"mail"}, {"mail"})
in
#"Expanded user 1"

 

--Nate

@Anonymous  Thank you very much.  This is exactly what I needed.  🙂

Anonymous
Not applicable

I don't think you'll find a table in the active directory that is specifically address book. However if you go to the person records you will find everybody's name and email address as a record. Select those columns and records, expand them, and you've got all of your organazation's names and email addresses. Done.

 

--Nate

Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

You will need to export GAL as csv and then import csv into PQ. This is the only way out currently. 

Anonymous
Not applicable

You can use the Active Directory connector  to query the Organizational Person records.

 

--Nate

@Anonymous  Thank you.  When I slect "active Directory Connector" in the list of data sources, I see a lot of data tables, but I doo not see 'address book'.  I doo see 'addressBookContainer' but it is an empty table.  What table would contian the address book as seen in Outlook?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.