I have a service account that is in our SharePoint and needs to be removed. The account still needs to exist in AD, just not in SharePoint. This account is from an OU that is not selected in the "Edit synchronization connection" settings on the UPSA.
I have tried setting the UPSA to
-PurgeNonImportedObject $true in PowerShell and running the profile sync again, but this did not resolve my issue.
Is there a way to sync SharePoint with AD and remove any user that is not set to be imported?