Skip to content

Instantly share code, notes, and snippets.

@darrenjrobinson darrenjrobinson/Schema.ps1
Last active Nov 17, 2018

Embed
What would you like to do?
Microsoft Identity Manager SharePoint Online Powershell Management Agent Schema Script. Supporting blog post can be located here https://blog.darrenjrobinson.com/managing-sharepoint-online-spo-user-profiles-with-fimmim-2016-and-the-granfeldt-powershell-ma/
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-msOnline-ObjectId|String" -Value "333a7e07-e321-42ea-b0a5-aaaaaaaaaaa"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "user"
$obj | Add-Member -Type NoteProperty -Name "SID|String" -Value "i:0h.f|membership|1003bffd94e9a9a8@live.com"
$obj | Add-Member -Type NoteProperty -Name "AccountName|String" -Value "i:0#.f|membership|first.last@customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "FirstName|String" -Value "Firstname"
$obj | Add-Member -Type NoteProperty -Name "LastName|String" -Value "LastName"
$obj | Add-Member -Type NoteProperty -Name "PreferredName|String" -Value "FirstName LastName"
$obj | Add-Member -Type NoteProperty -Name "WorkPhone|String" -Value "+61 2 9000 1234"
$obj | Add-Member -Type NoteProperty -Name "Department|String" -Value "Marketing"
$obj | Add-Member -Type NoteProperty -Name "Title|String" -Value "Marketing Manager"
$obj | Add-Member -Type NoteProperty -Name "SPS-JobTitle|String" -Value "Marketing Manager"
$obj | Add-Member -Type NoteProperty -Name "SPS-Department|String" -Value "Marketing"
$obj | Add-Member -Type NoteProperty -Name "Manager|String" -Value "i:0#.f|membership|joe.manager@customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "AboutMe|String" -Value ""
$obj | Add-Member -Type NoteProperty -Name "PersonalSpace|String" -Value "/personal/firstname_lastname_customer_com_au/"
$obj | Add-Member -Type NoteProperty -Name "PictureURL|String" -Value "https://customernet.sharepoint.com:443/User%20Photos/Profile%20Pictures/ab.."
$obj | Add-Member -Type NoteProperty -Name "SPS-SipAddress|String" -Value "first.last@customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "SPS-PersonalSiteCapabilities |String" -Value "12"
$obj | Add-Member -Type NoteProperty -Name "SPS-UserPrincipalName|String" -Value "first.last@customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "SPS-DistinguishedName|String" -Value "CN=3d03d44c-161a-4c2b-88dc-8fac035ea515,OU=23ae57df-8a51-444a-a59a-32811..."
$obj | Add-Member -Type NoteProperty -Name "SPS-SourceObjectDN|String" -Value "CN=3d03d44c-161a-"
$obj | Add-Member -Type NoteProperty -Name "WorkEmail|String" -Value "first.last@customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "HomePhone|String" -Value "+61 2 8000 1234"
$obj | Add-Member -Type NoteProperty -Name "Office|String" -Value "Sydney"
$obj | Add-Member -Type NoteProperty -Name "SPS-Location|String" -Value ""
$obj | Add-Member -Type NoteProperty -Name "CellPhone|String" -Value "+61 4 35 123 456"
$obj | Add-Member -Type NoteProperty -Name "SPS-UserType|String" -Value "0"
$obj | Add-Member -Type NoteProperty -Name "SPS-HideFromAddressLists|String" -Value "False"
$obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.