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

Community site session details

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

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,402 Most Valuable Professional on at
    Re: change SharePoint group permissions from editor to contributor

    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
    Re: change SharePoint group permissions from editor to contributor

    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
    Re: change SharePoint group permissions from editor to contributor

    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,402 Most Valuable Professional on at
    Re: change SharePoint group permissions from editor to contributor

    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
    Re: change SharePoint group permissions from editor to contributor

    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,402 Most Valuable Professional on at
    Re: change SharePoint group permissions from editor to contributor

    @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
    Re: change SharePoint group permissions from editor to contributor

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

  • oburgos85 Profile Picture
    2 on at
    Re: change SharePoint group permissions from editor to contributor

    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

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard