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, please reply.
- SvenSieverdingBronze ContributorIf you go to "List Settings" and then to "Advanced Settings"
then you have the Option
"Create and Edit access: Specify which items users are allowed to create and edit"
Set this to
"Create items and edit items that were created by the user"
And the Option
"Read access: Specify which items users are allowed to read"
Set this to
"Read items that were created by the user" - Venkadesh365Copper 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)