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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / change SharePoint grou...
Power Automate
Answered

change SharePoint group permissions from editor to contributor

(0) ShareShare
ReportReport
Posted on by 73

Hi,
I'm trying to change the permissions of the group members from edit to contribute after a site is created.
I tries the below, but run into the error "Value does not fall within the expected range".

How can I change the permissions of a SharePoint group to contributor using the RESt api?

rolanddaane_0-1639476723292.png

 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    Hey @rolanddaane 

     

    Please have a look at  - https://www.catapultsystems.com/blogs/use-power-automate-flow-to-change-sharepoint-group-permission-level/

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • rolanddaane Profile Picture
    73 on at

    Tried it and on the first part it fails with the error The expression "((substringof(‘Owner’,Title)))" is not valid.

  • CU23072230-0 Profile Picture
    on at

    On the picture you've sent is GET method. You want POST, don't you? 🙂

    Try to change that and let us know, I am changing rights in multiple FLOWS by HTTP Requests too, I may dig it up and see what is different.

  • Verified answer
    CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    Hey Mate @rolanddaane 

     

    The first step when testing an  REST API would be to use it in the browser and see it gives you a response -

     

    CFernandes_0-1639490435553.png

    Sample URL -

     

    https://xxxxxx.sharepoint.com/sites/DemoData/_api/web/sitegroups/?$filter=((substringof(%27Owner%27,Title)))

     

    I have verified using Power Automate and it indeed return correct result -

     

    CFernandes_1-1639490554430.png

     

    Action Configuration -

     

    CFernandes_2-1639490621639.png

     

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

     

     

     

  • rolanddaane Profile Picture
    73 on at

    I see why it didn't work.
    You have %27 instead of the ' 

    Getting result now

    rolanddaane_2-1639491322672.png

     



    rolanddaane_1-1639491283659.png

     



    rolanddaane_3-1639491408851.png

     

  • Verified answer
    CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @rolanddaane Please make sure you use /?$filter=((substringof(%27Owner%27,Title))) 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • rolanddaane Profile Picture
    73 on at

    Got it to work now! and I now add contribute and remove edit.
    Thanks!

  • oburgos85 Profile Picture
    2 on at

    Could you please share how you did it? A picture of the POST request would be good enough 🙂

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 273 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 149 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 144 Super User 2026 Season 2

Last 30 days Overall leaderboard