Yasovardhan
Monday, June 16, 2008
Get current user roles in Sharepoint
string UserRoles = string.Empty;
SPSite SiteName = new SPSite(SITE_URL);
SPWeb web = SiteName.OpenWeb();
foreach (SPRole role in web.CurrentUser.Roles)
{
UserRoles += role.Name + ";";
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment