I'm trying to check if a current user on our SharePoint Intranet is included in a group. I have a condition if yes or no. I've got to the point where I can capture output list of user emails in the group. I'm not sure how to check if current user email is in the output list.
Let me know if you need more specifics, thanks!
I was using this approach initially which worked when testing but don't want to hard code each user in the group.
I think I know the issue, the condition will always be false. So users in sharepoint group A should not have to ask for approval (Yes condition), and that is working. But anyone not in that group should go through the approval process. Can anyone assist with this?
Sorry, but the no condition isn't triggered when someone outside the group submits an approval.
I think it's working now. In my case it was - empty(outputs('Compose')['d']['results']) equal to false. Thanks!
Yes, I saw that but didn't know if I need to have the strAssociated or strRequested that's in his http request Uri? I'm only asking for user group:
_api/web/sitegroups(group number)/users
Hey @mason007
Can you review the solution at - https://powerusers.microsoft.com/t5/General-Power-Automate/Check-if-User-is-already-in-a-SP-Group-using-HTTP-Request/m-p/1522474
In the above the author of the solution check empty() expression to check if the user exisit...
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2