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?
Solved! Go to Solution.
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 -
Sample URL -
I have verified using Power Automate and it indeed return correct result -
Action Configuration -
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 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.
Hey @rolanddaane
Please have a look at - https://www.catapultsystems.com/blogs/use-power-automate-flow-to-change-sharepoint-group-permission-...
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.
Tried it and on the first part it fails with the error The expression "((substringof(‘Owner’,Title)))" is not valid.
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.
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 -
Sample URL -
I have verified using Power Automate and it indeed return correct result -
Action Configuration -
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.
I see why it didn't work.
You have %27 instead of the '
Getting result now
@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.
Got it to work now! and I now add contribute and remove edit.
Thanks!
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |
User | Count |
---|---|
49 | |
30 | |
23 | |
20 | |
20 |