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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
bson
Frequent Visitor

Convert Data - Active Directory user objectSid binary to SID

Hey there,

 

New to Power BI and data analytics.

 

I would like to extract the objectSid from the records that I've pulled from Active Directory. I was able to extract everything down to the binary level, but I would like for it to conver to a proper SID format ex. "S-1-5-21-917267712-1342860078-1792151419-500"

 

If there is a way to get an objectGUID as well that would be great. But only really need the SID as of now.

 

Thanks in advanced! 

4 REPLIES 4
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @bson,

Have you resolved your issue? If you have, welcome to share your solution or mark the right reply as answer. More people will benefit from here.

Best Regards,
Angelia

Hey Angelia,

 

I have not gotten the chance to test out your solution. Once I get some time, I will let you know what worked for me, thank you 🙂

Hi @bson,

Have you resolved your issue? If you have, welcome to share your solution or mark the right reply as answer. More people will benefit from here.

Best Regards,
Angelia

v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @bson,

In Query Editor, please use Binary.ToText function and check if it works fine, like the following shows.

= Binary.ToText(Guid, 0)


Please refer to this similar thread. You have convert the data to binary level? I test it, it display as Hexadecimal String Form as follows.

C0B131B2.PNG

I post some blog links below. Hope it is useful.

How To Convert a String Formatted GUID to a Hexadecimal String Form For Use When Querying the Active...

Active Directory ObjectGUID format - conversion

 

Best Regards,
Angelia

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.