Geeks With Blogs
Madhawa Learns To Blog : C#, Java .net, c#, java,sql, OOAD and more mad memory dumps... November 2008 Entries
Add a user programmatically to a User Group in SharePoint
/// <summary> /// Add a user to a Sharepoint group /// </summary> /// <param name="userLoginName">Login name of the user to add</param> /// <param name="userGroupName">Group name to add</param> private void AddUserToAGroup(string userLoginName, string userGroupName) { //Executes this method with Full Control rights even if the user does not otherwise have Full Control SPSecurity.RunWithElevatedP... { //Don't use context to create the spSite object ......

Posted On Tuesday, November 18, 2008 6:47 AM

Understand SharePoint Permissions
Check these really good articles by James Tsai. Understand SharePoint Permissions - Part 1. SPBasePermissions in Hex, Decimal and Binary - The Basics Understand SharePoint Permissions - Part 2. Check SharePoint user/group permissions with Permissions web service and JavaScript Thanks Suranja for sending me these links ......

Posted On Tuesday, November 11, 2008 11:07 AM

Copyright © Madhawa Karunaratne | Powered by: