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 / Add Guest user to Azur...
Power Automate
Unanswered

Add Guest user to Azure AD using power automate

(0) ShareShare
ReportReport
Posted on by 18

Hello,

 

As a new user with the power platform I have the following to work on.

I am trying to automate the process of adding guest - external users to Azure AD.

 

The idea is someone from the company wishes to add external people to their MS Teams team and contacts the support team. At the moment someone from the support team adds the external user manually to Azure AD as guest and then the submitter adds them into teams.

 

Instead I have created an MS Forms for the submitter to send the name and email of the external user. A flow then populates an SP List with the MS Form info and then send an approval email to support to approve or decline. Once approved then it should add the guest user to Azure AD. This last part is the one I am missing as the Azure AD Create user connector seems to work only for adding normal users? The user i have has access to add guest users only.

 

Is there a workaround or another logic/ better way of doing this? 

Thank you for the help

Categories:
I have the same question (0)
  • Verified answer
    AnthonyAmador Profile Picture
    2,553 Moderator on at

    Hi @Apkt 

     

    I found two blogs that can help you with this problem, I think you should use Graph API.

    https://arpitmscrmhunt.blogspot.com/2020/05/add-guest-users-in-azure-active.html

     

    Add External users to Azure AD Using Power Automate (ignatiuz.com)

     

    Hope this can help you. 

    Cheers. 

  • Apkt Profile Picture
    18 on at

    Perfect I will give these a go

  • Apkt Profile Picture
    18 on at

    Forgive me for being ignorant, the above examples both have an app being added to AzureAD in order to use that to make the http call.

     

    In my case all i need is to add the user in Azure AD as a guest and possibly sent the invitation email with the default link AzureAD sends if you did it manually via Azure, at this stage i don't want to associate an app. After they are added, then the person who requested to add the guest user will manually add the user to their MS Teams. Would this be possible?

  • Apkt Profile Picture
    18 on at

    Managed to make it work with was provided AnthonyAmador. I did need to declare an app in AzureAD to get the info for HTTP to work. As i said this is totally new to me thank you for the help

  • adylim Profile Picture
    19 on at

    I just did this too!

     

    now stuck on how to get the userID of the invited guest...I plan on using the user_id to add to various groups

  • fredanaman74 Profile Picture
    8 on at

    Hi,

     

    I followed the same doc as you but I am getting an "Enter a valid json". Did you get the same or did you change anything?

     

    {
    “invitedUserDisplayName”: “@{outputs('Get_response_details')?['body/r50132bc6e1704423b6c46b2643fb7dea']}”,
    “invitedUserEmailAddress”: “@{outputs('Get_response_details')?['body/r4ba646a99769449284065db6634b375d']}”,
    “sendInvitationMessage”: false,
    “inviteRedirectUrl”: “https://akramqureshi.com/2019/12/”
    }

     

    Any help would be appreciated.

     


    Thanks

    Fred

     

  • Jamie-RuralData Profile Picture
    4 on at

    Just spent ages trying to work this out, 

     

    I also had the invalid JSON error, 

    It was the quotation marks that was the issue, try the following:

     

    {
    "invitedUserDisplayName": "Dynamic username",
    "invitedUserEmailAddress": "Dynamic email",
    "sendInvitationMessage": false,
    "inviteRedirectUrl": "Another web address"
    }

     Hope that helps!

  • MelvinR Profile Picture
    2 on at

    Can you provide updated links? these dont seem to be working - thank you!

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard