I have been trying to figure out how to setup a Flow with Power Automate to change permissions for when a new News Article is created/posted on the site to the admins and authors only.
Background info: Members of the contribute group can add news articles, which means I can't change the permission for the Site Pages to Read as this will block people from creating News Posts. Therefor they are able to make changes to whenever a news article is posted, which is what I would like to stop with Power Automate.
Basically how it is today:
1. News article created from a contribute group member (PrincipalID = 5)
2. The news article can be edited by all within the contribute group and Admins/Owners
What I want:
1. News article created from a contribute group member (PrincipalID = 5) or admin member (PrincipalID = 3)
2. Change permissions to edit for only Author and Admin/Owners and Read for rest of Contribute group and everyone else.
Anyone here who can help me out? I have tried with the HTTP Request, however I am no sure about the flow setup and how to identify a Site Page as a News Article.
Hi David,
Unfourtunately I am not asking for breaking inheritance as I have already done this. Is am working with Site Pages, not Document Libary here.
The reason is, that people cannot contribute, without Edit permissions. This way they need to have Edit permission for the Site Pages folder, but if a person creates a News Article, I want only the author and admins/owners to have Edit/writing permissions after it has been created. Right now all in the Contribute group can edit the News Article, whenever it is published.
I think what you are asking is that you want just two specific people (PrincipalID 5 and 3) to be able to create and edit items in your site pages library. If so, go into the Library settings > More library settings and choose Permissions for this document library. You can then break inheritance and first grant the group member Contribute access and then grant the person who has owner permissions full control access.
Next, you can change the permissions on the permission groups to Read. However, I really wouldn't recommend changing the permissions on the Owners group.
If you have never broken inheritance on something in SharePoint, I would recommend you create a test document library so you can see how this works before you attempt it on the site pages library.