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

  • 2
  • Question
  • Updated 2 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

  • 26 Posts
  • 1 Reply Like

Posted 2 months ago

  • 2
Photo of Pratik Somanagoudar

Pratik Somanagoudar, Employee

  • 18 Posts
  • 1 Reply Like
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

  • 26 Posts
  • 1 Reply Like
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 ?