Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Adding guest user to a Azure AD Security Group using Power Automate

(0) ShareShare
ReportReport
Posted on by 14

Hello,

I am trying to automate the process of creating a new guest user and adding him to a certain Azure AD security group using Power Automate. But when the process gets to adding the new guest user, the following error occurs:

 
 

image.png

 

The output error message states that "code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation." The flow is connected to my MS account and on Azure AD, my account has permissions to add members to groups. Why is the flow ending in an error, when my account should have the permission to add members to Azure AD groups?

  • LasseNordqvist Profile Picture
    14 on at
    Re: Adding guest user to a Azure AD Security Group using Power Automate

    Thank you @ekarim2020, my Azure AD group was role-assignable and this was the reason why my flow wasn't allowed to add new users into the group.

  • Verified answer
    Ellis Karim Profile Picture
    10,847 Super User 2025 Season 1 on at
    Re: Adding guest user to a Azure AD Security Group using Power Automate

    Hi @LasseNordqvist ,

     

    Can you please double-check

    1. You have the correct group ID in the "Add user to group" action.
    2.  The group is NOT a Mail-Enabled Security groups. This type of group is not supported.

     

    Please also see the following post: Solved: Re: Insufficient privileges to complete the operat... - Power Platform Community (microsoft.com)

    ekarim2020_0-1688107365850.png

    ekarim2020_1-1688107378961.png

    Reference doc:  Azure AD - Connectors | Microsoft Learn


    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

  • LasseNordqvist Profile Picture
    14 on at
    Re: Adding guest user to a Azure AD Security Group using Power Automate

    Hello @ekarim2020 ,

     

    My account is a owner of the group that i'm trying to add guest users to.

  • Ellis Karim Profile Picture
    10,847 Super User 2025 Season 1 on at
    Re: Adding guest user to a Azure AD Security Group using Power Automate

    Hi @LasseNordqvist ,

     

    Can you confirm that your account is a group owner of the Azure AD security group.


    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow