Hello,
I have this instant flow that is triggered in powerapps that will check if the current logged in user is part of the sharepoint group. The problem with my flow is that when a group contains multiple members it returns true and when it doesn't have any member in the group it returns false regardless if the email is in the group or not.
First, I initialize a boolean value to false.
then send an HTTP request to Sharepoint that filters the emails
with GET method
Uri :
_api/web/sitegroups/getByName('GROUP')/Users?filter=Email eq '@{triggerBody()['text']}'
then a compose action with the expression
@{body('Send_an_HTTP_request_to_SharePoint')['d']['results']}
after that a condition to check if the array is empty
equals(String(outputs('Compose')),'[]')
and if it is empty, the variable will be false meaning the user is not part of the group.