Forum Discussion
Sakib_Gayen
Dec 01, 2022Copper Contributor
SharePoint List User Level permission
Hello, I have 3 members in my SharePoint List and by default they got EDIT permission. I want to set permission as - every user can see only his own created list items. If any one know about it...
Venkadesh365
Dec 01, 2022Copper Contributor
Hi Sakib_Gayen
One way to solve this scenario is to use flow-
- Break the permission of item when item created
- Add the permission to the user who created the item
- Below are the steps:
- Create a flow in Power Automate
- Trigger : When an item is created
- Break the Permission.
- Action: Send an HTTP request to SharePoint
- Uri: _api/lists/getByTitle('list-title')/items(item-id)/breakroleinheritance(copyRoleAssignments=false,clearSubscopes=true
- Headers: {
"Accept": "application/json",
"Content-type": "application/json"
} - Get the ID of User who created the item
- Action: Send an HTTP request to SharePoint
- Uri: _api/web/SiteUsers/GetByEmail('created-by-user-email')/Id
Add EDIT permission to user who created the item - Add Permission to user who created the item
- Action: Send an HTTP request to SharePoint
- Uri:_api/lists/getByTitle('list-title')/items(item-id)/roleassignments/addRoleAssignment(principalid=user-id},roledefid=1073741830)