Announcements
Hi,
Is there any way to get all/any sharepoint groups a user is a member of?
I can get group members of a Sharepoint group but I want to check if a user is member of any sharepoint group on a site.
Hope that is clear.
Awaiting response.
H
You can send an HTTP request to SharePoint to get this information:
_api/web/SiteUsers/GetByEmail('useremail')/groups
After you get that far, well, it depends what you want to do with it. Do you just want a list? Or do you want to act on the information?
Thanks @Rhiassuring. I wanted to find out if a site user is a member of any sharepoint group or not and above action will definitely help.
Now that I have all the groups, how can I remove the user from all groups?Thanks in advance🙏🏼
@Everart_Araujo From the group IDs that are returned, you will need to iterate through them and call the HTTP Request shown here: https://tomriha.com/remove-user-from-a-sharepoint-group-with-power-automate-flow/
Thank you for your quick reply but I am guessing I can not use the direct output from the http request right?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Mohsin Ali 445
11manish 345 Super User 2026 Season 2
M Bilal Khan 300