Tag Info

New answers tagged

0

You need to use the propriety Member foreach (var principal in listOfPrincipals { if (principal.Member is SPGroup) { /* do stuff */ } else if (principal.Member is SPUser) { /* do stuff */ } }


0

In addition to the Administrator and Permission on the UPSA, I needed to add the SharePoint setup user as db_owner on the ProfileDB.


0

Have you tried to use SPFieldUser.GetFieldValueAsHtml method? Update You can try use this code, but I'm not sure about details because it from my head and I cannot test it now. SPUser user = SPContext.Current.Web.CurrentUser; SPFieldUser userField = SPContext.Current.Web.Fields[SPBuiltInFieldId.AssignedTo] as SPFieldUser; string userLookup = ...



Top 50 recent answers are included