How to add Users to a SharePoint Group in SharePoint 2013
Hello SharePointers, In this article, I will give a simple code to add users to a SharePoint group programattically.Below is the code to add a user to the group using Server Side Object Model. public static void AddUserToSharePoint Group( string spuser,string spgroup,string spurl) { string loginName = spuser; SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new […]