Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

UserGroups in Sharepoint

  Asked By: Rickie    Date: Mar 24    Category: Sharepoint    Views: 482

I have a small scenario please tell me

I have a site that site contains nearly 10 User groups. My Requirement is
based on UserId How can i get the UserGroup.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Benito Carey     Answered On: Mar 24

SPUser user  = web.AllUsers.GetByID(userid);

user.groupname();

in this way we can get groupname of user by using userid

 
Answer #2    Answered By: Ebony Perkins     Answered On: Mar 24

In case if you want to check it (no code way) check this utility on codeplex;
http://accesschecker.codeplex.com/

Also checkout this blog to get some details on the SPuser and SPGroups class :
chrissyblanco.blogspot.com/.../...s-member-of.html

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

Related Topics:



Tagged:    

 
 
 

Related Post