web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How can I get an Azure...
Power Automate
Unanswered

How can I get an Azure AD object ID using Flow? Deleting guest user accounts using graph API + Flow

(0) ShareShare
ReportReport
Posted on by

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!

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    on at

    Hi @Anonymous,

     

    It's maybe difficult to find another more automated approach to achieve your requirement.

     

    Best regards,

    Alice

  • Community Power Platform Member Profile Picture
    on at

    I don't expect it to be anything but difficult, that's what makes it challenging....

     

    Still looking for any input on this.

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard