"Unexpected error encountered while performing your action."xxxx-xx-xxTxx:xx:xx ERROR sts-default[42:federationDataPreparerScheduler-1] [CorId= OpId=] [com.vmware.vcenter.tokenservice.utils.PrincipalUtil] User name S-1-x-xx-xxxxxxxx does not contain domain. Expected: name@domain or domain\\usernamexxxx-xx-xxTxx:xx:xx ERROR sts-default[42:federationDataPreparerScheduler-1] [CorId= OpId=] [com.vmware.vcenter.tokenservice.utils.PrincipalUtil] User name S-1-x-xx-xxxxxxxx does not contain domain. Expected: name@domain or domain\\usernameVMware vCenter Server 8.x
When an AD user/group is added to a local vCenter group, vCenter creates a ForeignSecurityPrincipal (FSP) object in SID format, along with a duplicate FSP object in UPN format, for the particular AD user/group and adds both objects as members to the local group in vmdir.
When displaying the local group's members on the UI, the SSO code skips the SID formatted FSPs so that the UI doesn't show the AD user/group twice -- only the UPN formatted group membership gets displayed.
If, for some reason, the UPN formatted FSP object is removed from the local group in vmdir but the SID formatted FSP object still exists as a member of the local group (and its flag is set to 0 to indicate a successful UPN conversion), then the AD user/group won't be displayed on the UI when viewing the local group on the vSphere Client.
Attempting to add the AD user/group again will fail, since the SID formatted FSP group membership for this user/group already exists.
Before undertaking any of the options listed below, take OFFLINE snapshots of both vCenters in ELM/LM and ONLINE snapshot for standalone vCenter just to be safe