Digital Nervous System Making Incredible Software, Incredibly Simple

AD: GUIDs in Base64

Just a short note this time. As I continue to work on multiple federation partners, and configuration endpoints, I continue to see a mix of formats being transmitted when passing GUID style values.

These are appearing as either Base64, or raw GUID; so to assist I created a simple function which would allow me to see the GUIDs from my idP in both formats to assist with debugging.

Get-ADUser -Filter * -SearchBase "DC=DigiNerve,DC=NET" | select UserPrincipalName, ObjectGUID, 
    @{Label='ObjectGUIDBase64';Expression = {[System.Convert]::ToBase64String(($_.ObjectGUID).ToByteArray())}}

This will be very useful as you expose Windows Azure Pack and other claim aware endpoints to federation partners.

Be social and share this post!
Share via OneNote