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.