locked
Retrieve user groups membership for current user RRS feed

  • Question

  • Hi all,

     

    I'm trying to get the Sharepoint Groups the current user is member of.

     

    To achieve that I tried to use the UserProfileService web service with the GetUserMemberships method to return all groups my user is member of.

    But either I have an error saying it couldn't find the specified user (despite my user exists in SPS I tried with and without the domain name) or the Web Service return no error but it returns no content either and my user is member of more than one group.

     

    I'm using the Web Service because I'm doing this from Infopath Form Services.

     

    What am I missing ?

    Wednesday, December 5, 2007 12:22 PM

Answers

  •  

    GetUserMemberships appears to return the Distribution Lists the user is member of.

     

    There is another Web Service UserGroup.asmx which provides a method name GetGroupCollectionFromUser which returns what I was looking for.

    Wednesday, December 5, 2007 1:36 PM

All replies

  •  

    GetUserMemberships appears to return the Distribution Lists the user is member of.

     

    There is another Web Service UserGroup.asmx which provides a method name GetGroupCollectionFromUser which returns what I was looking for.

    Wednesday, December 5, 2007 1:36 PM
  • dear Sébastien

    it seam's  that i am the second  person who have your problem
    i want to
    Retrieve user groups membership for current user
    Tuesday, December 11, 2007 9:29 AM
  • dear Sébastien

    it seam's  that i am the second  person who have your problem
    i want to
    Retrieve user groups membership for current user and i dont find ke cuurent function of UserGroup.asmx that get the information of current user

    can u help me how to use this web service to find the user group

    best regards
    Tuesday, December 11, 2007 9:31 AM
  • Same problem here

    Can anyone post the solution for this problem???

    Thanks
    Harish
    Tuesday, December 22, 2009 11:15 AM