Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Group Memberships

  Asked By: Mrigendra Bhuyan         Date: Mar 09, 2008      Category: Sharepoint      Views: 460
 

Can anyone tell me if there is a quick and dirty way to find out what
group a person is a member of?

Tagged:    

 

5 Answers Found

 
Answer #1       Answered By: Corrine Potts          Answered On: Mar 09, 2008       

programmatically you can do something like this

//IS CURRENT USER MEMBER OF THESE GROUPS
using (SPSite site = new SPSite(SHAREPOINT_SITE_URL_BASE))
{
using (SPWeb web = site.OpenWeb())
{
foreach (string groupName in
Enum.GetNames(typeof(WebConstants.SPGROUPS)))
{
SPGroup spGroup = web.Groups[groupName];
if (spGroup != null)
{
if (spGroup.ContainsCurrentUser)
{
SPUserGroupList.Add(groupName);
}
}
}
}
}

 
Answer #2       Answered By: Kabeer Karkare          Answered On: Mar 09, 2008       

Not out of the box, no. Barracuda Tools has a product called DeliverPoint
that will help you discover the permissions and associations that a user has
throughout your Farm deployment.

 
Answer #3       Answered By: Nathaniel Davis          Answered On: Mar 09, 2008       

do you have a web site for this tool?

 
Answer #4       Answered By: Zoe Cotton          Answered On: Mar 09, 2008       
 
Answer #5       Answered By: Alexander Scott          Answered On: Mar 09, 2008       

be sure to register on the site and download the free trial.

 
Didn't find what you were looking for? Find more on Group Memberships Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].