Idira Identity: What is the cause of a SourceAnchor error when Provisioning an Office 365 account?
93
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 13:03 PM
Question
What is the cause of the SourceAnchor error when Provisioning an Office 365 account shown below?
"SourceAnchor is a required property for federated user. paramName: FederatedUser.SourceAnchor, objectType: System.String"
Environment
Identity App Access Service
Answer
This error is likely the result of a duplicate account inside of Office 365 that matches, but has a different ImmutableID. This account could also be in the Office 365 Recycle Bin (aka not visible from the Web GUI).
To try and resolve the issue, do the following:
1. Connect to Microsoft online with Azure Active Directory Powershell. Instructions from Microsoft provided as a courtesy here.
2. Look up the user account on O365.
get-msoluser -userprincipalname <user_principal_name> | fl
3. Look for the ImmutableID value.
4. In Active Directory look for the ObjectGUID attribute. Use that value to plug into the below script: (Hint: Run each line of this code separately)
$OnPremGUID= ADUser_ObjectGUID_Here
$Convert=[system.guid]::Parse("$OnPremGUID")
$Converted = [system.convert]::ToBase64String($Convert.ToByteArray())
5. The result of this script SHOULD equal the value for ImmutableID from above. If they do not match, one option is to remove the O365 account and then re-sync.
NOTE: If this account contains any data, mail, OneDrive files, etc., take precautions to back up this data prior to deleting any accounts from O365.
Remove-MsolUser -UserPrincipalName <user_principal_name> -Force Then: Remove-MsolUser -UserPrincipalName <user_principal_name> -Force -RemoveFromRecycleBin
6. You might also need to look in the Recycle Bin for the problem duplicate account. Use the following command(s) to view and delete that account:
Get-MsolUser -ReturnDeletedUsers Or Get-MsolUser -UserPrincipalName <user_principal_name> -ReturnDeletedUsers Then: Remove-MsolUser -UserPrincipalName <user_principal_name> -Force -RemoveFromRecycleBin
7. Once this has been completed, try to re-sync the user. Open the Idira Identity Admin Portal and in the User section, find the user and select "Sync All Apps" to initiate a sync.
8. Validate using the Outbound Provisioning Job History located at Settings -> Users -> Outbound Provisioning -> View Synchronization Job Status and Reports.
Additional Information
Details
Question:What is the cause of the SourceAnchor error when Provisioning an Office 365 account shown below?
"SourceAnchor is a required property for federated user. paramName: FederatedUser.SourceAnchor, objectType: System.String"
Answer:
This error is likely the result of a duplicate account inside of Office 365 that matches, but has a different ImmutableID. This account could also be in the Office 365 Recycle Bin (aka not visible from the Web GUI).
To try and resolve the issue, do the following:
1. Connect to Microsoft online with Azure Active Directory Powershell. Instructions from Microsoft provided as a courtesy here.
2. Look up the user account on O365.
get-msoluser -userprincipalname <user_principal_name> | fl
3. Look for the ImmutableID value.
4. In Active Directory look for the ObjectGUID attribute. Use that value to plug into the below script: (Hint: Run each line of this code separately)
$OnPremGUID= ADUser_ObjectGUID_Here
$Convert=[system.guid]::Parse("$OnPremGUID")
$Converted = [system.convert]::ToBase64String($Convert.ToByteArray())
5. The result of this script SHOULD equal the value for ImmutableID from above. If they do not match, one option is to remove the O365 account and then re-sync.
NOTE: If this account contains any data, mail, OneDrive files, etc., take precautions to back up this data prior to deleting any accounts from O365.
Remove-MsolUser -UserPrincipalName <user_principal_name> -Force Then: Remove-MsolUser -UserPrincipalName <user_principal_name> -Force -RemoveFromRecycleBin
6. You might also need to look in the Recycle Bin for the problem duplicate account. Use the following command(s) to view and delete that account:
Get-MsolUser -ReturnDeletedUsers Or Get-MsolUser -UserPrincipalName <user_principal_name> -ReturnDeletedUsers Then: Remove-MsolUser -UserPrincipalName <user_principal_name> -Force -RemoveFromRecycleBin
7. Once this has been completed, try to re-sync the user. Open the Idira Identity Admin Portal and in the User section, find the user and select "Sync All Apps" to initiate a sync.
8. Validate using the Outbound Provisioning Job History located at Settings -> Users -> Outbound Provisioning -> View Synchronization Job Status and Reports.