When I call SearchPrincipals to search for a user name, I get back results with a PrincipalType
of SecurityGroup
instead of User
. This is odd since the user should be a.... user.
What are the reasons why this could be happening?
Utility.SearchPrincipals(context, context.Web, "user name", PrincipalType.All, PrincipalSource.All, null, short.MaxValue);
This is an on-premise SharePoint 2013 environment.