Return to Snippet

Revision: 34748
at October 28, 2010 00:19 by scholli


Initial Code
bool isMember = false; 
SPWeb oWeb = SPContext.Current.Web; 
isMember = web.IsCurrentUserMemberOfGroup(web.Groups["Your Group"].ID);

// Check If user belong to your group.
if (isMember==false)   
{      
  //Redirect to AccessdDenied.aspx   
}

Initial URL

                                

Initial Description

                                

Initial Title
Is current user member of group

Initial Tags
sharepoint

Initial Language
C#