Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

UserGroups in Sharepoint

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

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.



2 Answers Found

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

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


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;

Also checkout this blog to get some details on the SPuser and SPGroups class :

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

Related Topics:



Related Post