Create a gist now

Instantly share code, notes, and snippets.

Granfeldt PSMA Azure AD Groups w/ Diff Sync, Paging and Group Membership
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-ID|String" -Value "08572d0b-e5e6-4b9b-bdf1-576dd90aa1d9"
$obj | Add-Member -Type NoteProperty -Name "objectID|String" -Value "08572d0b-e5e6-4b9b-bdf1-576dd90aa1d9"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "AADGroup"
$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 "AADMail|String" -Value "maryjb@customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "AADMailNickname|String" -Value "maryjb"
$obj | Add-Member -Type NoteProperty -Name "AADMailEnabled|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "AADSecurityEnabled|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "AADonPremiseSID|String" -Value "S-1-5-21-3878594291-2115959936-132693609-62053"
$obj | Add-Member -Type NoteProperty -Name "AADProxyAddresses|String[]" -Value ("smtp:user1@customer.com.au", "smtp:user1@customeroldname.com.au")
$obj | Add-Member -Type NoteProperty -Name "AADLastDirSyncTime|String" -Value ""
$obj | Add-Member -Type NoteProperty -Name "AADGivenName|String" -Value "Mary"
$obj | Add-Member -Type NoteProperty -Name "AADImmutableId|String" -Value "dbJRmSjG3USE++q48Wk34g=="
$obj | Add-Member -Type NoteProperty -Name "AADMembers|Reference[]" -Value "3a2a9482-7a70-4bc1-b7e9-6d4f57ebdbee","3a2a9482-7a70-4bc1-b7e9-6d4f57ebdbed"
$obj
$obj2 = New-Object -Type PSCustomObject
$obj2 | Add-Member -Type NoteProperty -Name "Anchor-ID|String" -Value "08572d0b-e5e6-4b9b-bdf1-576dd90aa1d9"
$obj2 | Add-Member -Type NoteProperty -Name "objectID|String" -Value "08572d0b-e5e6-4b9b-bdf1-576dd90aa1d9"
$obj2 | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "AADUser"
$obj2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment