Forum Discussion

Lucas_Ap's avatar
Lucas_Ap
Copper Contributor
Jun 09, 2022
Solved

Edit what items users can see from the SharePoint list I've created with Power Automate

I have create an automated forms that creates a new item in SharePoint list with the information that is provided in the forms. But the problem is that when people access the SharePoint list they sho...
  • Carlos_Marins's avatar
    Jun 10, 2022
    Hi Lucas,

    If your priority is only to make sure the user sees their items when they access the list, I guess you could create a field called "Sender" or something like that. From that, you could create a view where Sender is equal to to the current user. That would make the user see only the items sent by him, instead of Created By him. However, this option does not change any permission, so if you have to make sure the user does not have access to any other item, it wouldnt work.

    If your priority is security, i.e. making sure the user has only access to items that he sent, things could get a little tricky. I've worked on a solution in the past where there was a flow in Power Automate that would move the item to their respective folder based on the properties of the item created. So, in your example, you could have different folders for each user - you would have to enable the "Add Folder" option for the list-, where each folder has its own unique permissions, then when an item is created, read the "Sender" email and move the item to his respective folder. That would make it so the item would be inside a folder with unique permissions. In this case, you'd have to worry about the number of items created, since breaking inheritance in SharePoint gets tricky after 5000 items.

    If you have any questions, let me know.

Resources