I am having this issue in my SharePoint 2013 environment. I have a few SharePoint groups and respectively assigned each as owner to a sub site.
Group1 owns => Sub Site A
Group2 owns => Sub Site B
I deployed a custom page on each website (uses the same master page and common codes) to manage members to each group. The form simply ask for the new group member's Windows Username (can accept multiple usernames) then press "Save" button.
Once the save button is clicked, the following code is executed
public void AddUsersToGroup(List<User> users, SPGroup group)
foreach (User user in users)
SPClaimProviderManager cpm = SPClaimProviderManager.Local;
SPClaim userClaim = cpm.ConvertIdentifierToClaim(user.LoginName, SPIdentifierTypes.WindowsSamAccountName);
string claimLoginName = userClaim.ToEncodedString();
catch (Exception ex)
Note: The "User" class is a custom domain class.
Our custom code did not catch an exception but after i checked the SharePoint log, I found this error message
The user does not exist or is not unique.
Stack trace: onetutil.dll: (unresolved symbol, module offset=00000000000A2337) at 0x000007FE0AE62337 onetutil.dll: (unresolved symbol, module offset=00000000000A2281) at 0x000007FE0AE62281 owssvr.dll: (unresolved symbol, module offset=0000000000054D05) at 0x000007FE0A414D05 owssvr.dll: (unresolved symbol, module offset=00000000001363A1) at 0x000007FE0A4F63A1 Microsoft.SharePoint.Library.ni.dll: (unresolved symbol, module offset=00000000000B3F2A) at 0x000007FE0B123F2A
SPRequest.UpdateMembers: UserPrincipalName=, AppPrincipalName= ,bstrUrl=https://devsharepoint.local/sites/Site_A ,dwObjectType=0 ,bstrObjId= ,lGroupID=112 ,lGroupOwnerId=20 ,bRemoveFromCurrentScopeOnly=False ,bSendEmail=True
System.Runtime.InteropServices.COMException: The user does not exist or is not unique.
Has anyone experienced this before? Greatly appreciate your inputs and feedback.
- Edited by keny2010 1 hour 0 minutes ago