Hello,
I'm trying to configure a Flow to delete guest user account. To do this, I need to pass a HTTP request to the Microsoft Graph API. My flow gets the user-to-be-deleted's account from a SharePoint list which contains other things such as the user's date-to-be-deleted etc. This works fine for regular, licensed accounts because I can just pass the user's account username (john.doe@ourdomain.com) into the HTTP request. However, this does not work for guest accounts. I have found the only solution to be passing in the guest user's object ID but I do not know how to automate getting it.
One solution would be to have the workflow user retrieve the Object ID from Azure AD but I would like to find a more automated approach to this.
I appreciate any feedback!