Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Getting error for Add User to AD Group

(0) ShareShare
ReportReport
Posted on by 54

Hello, 

I am getting this error when I am adding users to the AD group. I have tried manually to add users in the following AD group and it works. But I am getting Group ID and User ID from the Sharepoint list. And Sharepoint list I am using Add user to AD Group connector in the flow. And it's throwing this below error. 

Before one week it's working fine but I got an error today.

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>

krish11_0-1617814250381.png

Please help me. If anyone has any idea about what's going on here. O really appreciate your help.

  • pavanpatil123 Profile Picture
    13 on at
    Re: Getting error for Add User to AD Group

    Hi @v-duann-msft 

    I'm getting below error while add user to azure AD group using flow

     

    {

      "error": {

        "code": "Authorization_RequestDenied",

        "message": "Insufficient privileges to complete the operation.",

        "innerError": {

          "date": "2022-11-01T16:09:00",

          "request-id": "fe369e8d-da15-48a9-a0a3-3a83b400f1c2",

          "client-request-id": "fe369e8d-da15-48a9-a0a3-3a83b400f1c2"

        }

      }

    }

  • Verified answer
    v-duann-msft Profile Picture
    on at
    Re: Getting error for Add User to AD Group

    Hi @krish11 

     

    Thank you for posting.

     

    According to your description, you are getting error while adding users to AD group via flow. But it was working before. If any misunderstanding, please kindly let me know.

     

    I tested this action from my end and it works normally. Thus, I believe it’s not a global problem right now.

    v-duann-msft_0-1617858962414.png

     

    Based on the 400 error code, it belongs to action configuration. Is that possible that you can establish the connection and test again.

     

    I did some research, all issues get such kind of error are related to flow misconfiguration. Could you please share me your flow overview just in case we missed any mistake?

    https://docs.microsoft.com/en-us/power-automate/fix-flow-failures

     

    Hope to hear from you soon.

     

    Best regards,

    Anna

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,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow