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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors