Skip to content

Instantly share code, notes, and snippets.

@darrenjrobinson
Last active July 10, 2019 23:04
Show Gist options
  • Save darrenjrobinson/89f5973e9fccdadca669766c66aa8dc5 to your computer and use it in GitHub Desktop.
Save darrenjrobinson/89f5973e9fccdadca669766c66aa8dc5 to your computer and use it in GitHub Desktop.
PowerShell Azure AD B2B Microsoft Identity Manager Management Agent - Schema Script. Associated Blog Post https://blog.darrenjrobinson.com/updated-azure-ad-b2b-guest-invitations-microsoft-identity-manager-management-agent/
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-objectID|String" -Value "08572d0b-e5e6-4b9b-bdf1-576dd90aa1d9"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "AADUser"
$obj | Add-Member -Type NoteProperty -Name "AADUserType|String" -Value "Member|Guest"
$obj | Add-Member -Type NoteProperty -Name "ID|String" -Value "08572d0b-e5e6-4b9b-bdf1-576dd90aa1d9"
$obj | Add-Member -Type NoteProperty -Name "AADAccountEnabled|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "AADGuestUser|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 "dbJRmSjG3USE++q48Wk34g=="
$obj | Add-Member -Type NoteProperty -Name "AADMail|String" -Value "maryjb@corp.com.au"
$obj | Add-Member -Type NoteProperty -Name "AADSurname|String" -Value "Bigh"
$obj | Add-Member -Type NoteProperty -Name "AADUserPrincipalName|String" -Value "maryjb@corp.com.au"
$obj | Add-Member -Type NoteProperty -Name "B2BCreationType|String" -Value "Invitation"
$obj | Add-Member -Type NoteProperty -Name "B2BUpdatedDateTime|String" -Value "31/10/2018 11:59:59 PM"
$obj | Add-Member -Type NoteProperty -Name "B2BExternalUserState|String" -Value "Accepted"
$obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment