
Announcements
I have a flow that sends out an invitation, which is working well but now I need to add a condition before this action to check if the user previously accepted an invite (i.e. from another SharePoint site/content, etc.).
Need to prevent guest user from receiving another invitation when they've already accepted an older/previous invite.
I tried the Azure connector Get User -- but it doesn't accept a guest email, only seems to accept internal users.
We pulled the properties from PowerShell and I guess in Power Automate, need to check the "UserState" status?
Hi @Tamras ,
You could try the following API:
https://graph.microsoft.com/beta/users?$filter=userType+eq+'guest'&$select=displayName,givenName,userType,externalUserState
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#users(displayName,givenName,userType,externalUserState)",
"value": [
{
"displayName": "Adele Vance EXT",
"givenName": "Adele",
"userType": "Guest",
"externalUserState": "Accepted"
}
]
}
Ellis
____________________________________
If I have answered your question, please mark the post as ☑️ Solved.
If you like my response, please give it a Thumbs Up.
My Blog Site