Tag Info

New answers tagged


SPUtility.GetLoginNameFromEmail can be used to get login name. SPUtility.GetIdentifierFromEmail can be used to get user id.


I have found the solution to assign permission to group: using (SPSite spSite = SPContext.Current.Site) { using (SPWeb web = spSite.OpenWeb()) { web.AllowUnsafeUpdates = true; SPGroupCollection grpColl = SPContext.Current.Site.OpenWeb().SiteGroups; SPGroup spGroup = grpColl.GetByName("myGroup"); SPRoleAssignment ...

Top 50 recent answers are included