Hello there,
In my sharepoint list "Pages", i added a column that is called "Audition" that is a User/Group column.
Whenever i want to create another page, i want to insert the only people/group that has access to that page.
Im trying to achieve this with flow, but flow doesn't have an "Change permissions" step.
Hw can I do this?
Solved! Go to Solution.
Hi @Field,
This should be possible with the Send a http request to SharePoint action in combination with the SharePoint REST Api.
Serge Luca has a nice blogpost on this subject:
In that example he's changing permissions for documents. But it should also be possible with pages.
Hi @Field,
This should be possible with the Send a http request to SharePoint action in combination with the SharePoint REST Api.
Serge Luca has a nice blogpost on this subject:
In that example he's changing permissions for documents. But it should also be possible with pages.
Hi there,
When i follow is guide, i get this error:
The expression "lists/getByTitle(‘Pages’)/items(38)/breakroleinheritance(copyRoleAssignments=false,clearSubscopes=true)" is not valid.
@Expiscornovus wrote:Hi @Field,
This should be possible with the Send a http request to SharePoint action in combination with the SharePoint REST Api.
Serge Luca has a nice blogpost on this subject:
In that example he's changing permissions for documents. But it should also be possible with pages.
Hi @Field ,
Is it by any chance the default SitePages list?
You could also retrieve the list guid and try and use that for the REST api call, like this example:
"lists(guid'6853ac4c-286c-4150-b846-15ec76280cfe')/items(38)/breakroleinheritance(copyRoleAssignments=false,clearSubscopes=true)
Hi @Expiscornovus ,
I have figured out my problem.
The flow you shown as an example is for one user only. But i am trying to user several users/Groups.
When i call the column i use to get the users, flow automatically uses a For Each to get each user/group, and therefor, im unable to get the variable.
Hi @Field,
Maybe it's an idea to make your variable of type array instead of string since it can contain multiple values?
Pieter Veenstra has a nice blog about arrays:
https://veenstra.me.uk/2018/07/10/microsoft-flow-shed-some-light-on-arrays/
I have tried with an array and still shows me an error.
User | Count |
---|---|
39 | |
34 | |
16 | |
13 | |
11 |
User | Count |
---|---|
23 | |
18 | |
17 | |
13 | |
12 |