Forum Discussion
Darwood
4 years agoFrequent Visitor
Matching ActiveDirectory Username to UserPrincipalName
We have a SQL Database that stores the Active Directory (AD) username against transaction e.g. dwilliams. I have created a Dataflow that pulls our Users from AD but I can only see the the UserPrincip...
- 4 years ago
Thanks Greg but I think USERNAME() only gives you the currently logged-in username. However my manager has found the information for me now in the expanded columns securityPrincipal.samAccountName and top.msDS-PrincipalName
Greg_Deckler
4 years agoCommunity Champion
Darwood Try USERNAME
USERNAME() versus USERPRINCIPALNAME() - Microsoft Power BI Cookbook [Book] (oreilly.com)
Darwood
4 years agoFrequent Visitor
Thanks Greg but I think USERNAME() only gives you the currently logged-in username. However my manager has found the information for me now in the expanded columns securityPrincipal.samAccountName and top.msDS-PrincipalName