Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I need to retrieve pre-windows 2000 username from Active directory, so I can cross reference it to the data I have from other source.
I know that it's proper name is SAMAccountName or pre-Windows 2000, cannot find it in AD. I can get all other user info, but not that..
How do I query AD (on premice, not Azure) for pre-windows 2000 username?
Many thanks for your help!
Solved! Go to Solution.
Figured it out:
see below
substitute BlaBla for your domain name
let
Source = ActiveDirectory.Domains("BlaBla"),
#"BlaBla" = Source{[Domain="BlaBla"]}[Object Categories],
user = #"BlaBla"{[Category="user"]}[Objects],
#"Expanded top" = Table.ExpandRecordColumn(user, "top", {"msDS-PrincipalName"}, {"top.msDS-PrincipalName"})
in
#"Expanded top"
Figured it out:
see below
substitute BlaBla for your domain name
let
Source = ActiveDirectory.Domains("BlaBla"),
#"BlaBla" = Source{[Domain="BlaBla"]}[Object Categories],
user = #"BlaBla"{[Category="user"]}[Objects],
#"Expanded top" = Table.ExpandRecordColumn(user, "top", {"msDS-PrincipalName"}, {"top.msDS-PrincipalName"})
in
#"Expanded top"
Hi @hgorina,
Thanks for your sharing the solution which will benefit other communities. As the issue is solved, would you please mark your reply as an answer so that we can close the thread.
Best Regards,
Qiuyun Yu
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |