My Technology Notebook
My daily adventures with technology.
Pages
Home
Contact Me
Disclaimer
Profile
Monday, March 22, 2010
Check user in group
private bool IsMember()
{
bool isMember;
SPSite site = new SPSite(SiteURL);
SPWeb web = site.OpenWeb();
isMember = web.IsCurrentUserMemberOfGroup(web.Groups["GroupName"].ID); web.Close();
site.Close();
return isMember;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment