Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
PSMA AzureAD Schema
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-ID|String" -Value "08572d0c-e5e6-4b9a-bdf1-576de90aa1d9"
$obj | Add-Member -Type NoteProperty -Name "objectID|String" -Value "08572d0c-e5e6-4b9a-bdf1-576de90aa1d9"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "AADUser"
$obj | Add-Member -Type NoteProperty -Name "AADAccountEnabled|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "AADDirSyncEnabled|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "AADDisplayName|String" -Value "Mary Jay Bligh"
$obj | Add-Member -Type NoteProperty -Name "AADGivenName|String" -Value "Mary"
$obj | Add-Member -Type NoteProperty -Name "AADImmutableId|String" -Value "dbJRmSjG7USE++q42Wk34g=="
$obj | Add-Member -Type NoteProperty -Name "AADLastDirSyncTime|String" -Value ""
$obj | Add-Member -Type NoteProperty -Name "AADMail|String" -Value "maryjb@customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "AADMailNickname|String" -Value "maryjb"
$obj | Add-Member -Type NoteProperty -Name "AADonPremiseSID|String" -Value "S-1-5-21-3878594291-2115959936-132693609-11111"
$obj | Add-Member -Type NoteProperty -Name "AADProxyAddresses|String[]" -Value ("smtp:user1@customer.com.au", "smtp:user1@customer.co.nz")
$obj | Add-Member -Type NoteProperty -Name "AADSurname|String" -Value "Bigh"
$obj | Add-Member -Type NoteProperty -Name "AADUserPrincipalName|String" -Value "maryjb@customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "AADTelephoneNumber|String" -Value "02 1234 5678"
$obj | Add-Member -Type NoteProperty -Name "AADPasswordPolicies|String" -Value "DisablePasswordExpiration"
$obj | Add-Member -Type NoteProperty -Name "AADShowInAddressList|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "AADCompanyName|String" -Value "Company"
$obj | Add-Member -Type NoteProperty -Name "AADCountry|String" -Value "Australia"
$obj | Add-Member -Type NoteProperty -Name "AADPhysicalDeliveryOfficeName|String" -Value "The Big Building"
$obj | Add-Member -Type NoteProperty -Name "AADUsageLocation|String" -Value "AU"
$obj | Add-Member -Type NoteProperty -Name "AADJobTitle|String" -Value "BOSS"
$obj | Add-Member -Type NoteProperty -Name "AADMobile|String" -Value "0400 123 456"
$obj | Add-Member -Type NoteProperty -Name "AADSipProxyAddress|String" -Value "sip:maryjb@customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "AADOtherMails|String[]" -Value ("user@somewherelese.com","user@anothersomewhereelse.com")
$obj | Add-Member -Type NoteProperty -Name "AADCity|String" -Value "Sydney"
$obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment