Hi @Ling Zhou_MSFT .
Question 1 (Version): SharePoint in Microsoft 365
Question 2 (Background): I am new to Power Automate but I was thinking of utilizing HTTP just not sure how to build this flow.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi! I'm currently working on a project, and I want to use SharePoint lists. My roadblock is that I want to ensure edits on a SharePoint list are not made after the day has passed. How can I do this? Please help.
Hi @Ling Zhou_MSFT .
Question 1 (Version): SharePoint in Microsoft 365
Question 2 (Background): I am new to Power Automate but I was thinking of utilizing HTTP just not sure how to build this flow.
Hi @John-Maxwell, Samuel,
Much appreciate for your clarification.
According to the information you provided and the research I have done, I may understand that you need to use power automate to remove the edit permission of a user or group after one day. If there is anything wrong, please correct me.
If there is not anything wrong, it is suggested that you please try the following steps:
1.Create a Scheduled Flow:
2.Set the Recurrence:
3.Break Inheritance (Skip this step if your list has broken permissions.):
Method: POST
Site Address: https://<your-sharepoint-site>
URI: _api/web/lists/getByTitle('<List_Title>')/breakroleinheritance(copyRoleAssignments=false, clearSubscopes=true)
4.Remove Permissions:
Method: POST
Site Address: https://<your-sharepoint-site>
URI: _api/web/lists/getByTitle('<List_Title>')/roleassignments/removeroleassignment(principalid=<User_ID>)
GET https://<your-sharepoint-site>/_api/web/siteusers/GetByEmail('userEmail')/Id
GET https://<your-sharepoint-site>/_api/web/sitegroups/getbyname('GROUP_NAME')/Id
5.Add New Permissions (Optional):
Method: POST
Site Address: https://<your-sharepoint-site>
URI: _api/web/lists/getByTitle('<List_Title>')/roleassignments/addroleassignment(principalid=<User_ID>, roleDefId=<Role_ID>)
Full Control: 1073741829
Design: 1073741828
Edit: 1073741830
Contribute: 1073741827
Read: 1073741826
Limited Access: 1073741825
View Only: 1073741924
GET https://<your-sharepoint-site>/_api/web/roledefinitions
If you have any questions, please do not hesitate to contact me.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. It will be beneficial to more community members reading here. Your contribution will be highly appreciated.