Is there a way to retrieve Groups associated with a User?

  • 2
  • Question
  • Updated 3 months ago
Hi, I am looking for a way to retrieve all groups associated to a user using sharefile web or the API. I have seen this https://account.sf-api.com/sf/v3/Users(id)/Groups but it only works for the authenticated user. 

Thank you!
Photo of Amelie

Amelie

  • 60 Posts
  • 5 Reply Likes

Posted 12 months ago

  • 2
Photo of Pratik Somanagoudar

Pratik Somanagoudar, Software Engineer

  • 28 Posts
  • 4 Reply Likes
Hi Amelie,

Yes that is the endpoint you would use to get groups for a user. Due to security reasons this endpoint does require an authenticated session to retrieve this information. If you require more information or need guidance of this flow, let us know what you are trying to build and we would do our best to help you out.

Thanks
Pratik S
Photo of Amelie

Amelie

  • 60 Posts
  • 5 Reply Likes
Hi Pratik, for verification purposes, we would need a report listing all groups for each users... I know there are already some solution where you can see all users in a group but I would need the other way round (see all groups for a user). Also, I would need to see it for all users. Not one at a time.

Is there a way to do this ?




Photo of gerben gnodde

gerben gnodde

  • 1 Post
  • 1 Reply Like
This seems still to be impossible? There is also no other practical way to do this..
What I want is very simple (or it should be) I (as an admin) just want to see what groups a user has access too.