Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Power Automate remove user from SharePoint Group return 401

(0) ShareShare
ReportReport
Posted on by

I am trying to use PowerAutomate to remove user from SharePoint Goup, but it throw 401.

 

Meekou_0-1693897521319.png

It works if I add user to group, but failed with remove condition

Meekou_1-1693897564165.png

 

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Power Automate remove user from SharePoint Group return 401

    Hi @Meekou 

     

    Firstly, check if you have the necessary privileges to remove the user from the SP group. If you have then you may try removing the user from group using email as show below:

    ManishSolanki_0-1693900275882.png

    _api/web/sitegroups/GetById(5)/users/getbyemail('<email address of user>')

    {
    "accept": "application/json;odata=verbose",
    "content-type": "application/json;odata=verbose",
    "X-HTTP-Method": "DELETE"
    }

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >