cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Responsive Resident
Responsive Resident

Adding item level permissions to a people picker value in a SharePoint Library

Hi All,

 

How would I give edit permissions to a newly created item for a user chosen within a people picker column, for that item?

I'm fairly comfortable with HTTP requests now with help from others on here, but now need to understand how to get the people picker value and apply that.

 

Regards,

 

T

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Hello @cardinalpipkin 

You can access to the people picker column email field, and use it to grant permissions. Have a look at this example:

permission.png

 In the TimeSheet list there's a people picker column named Employee, so I can read its email when an item is created.

Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

3 REPLIES 3
Highlighted
Super User II
Super User II

Hello @cardinalpipkin 

You can access to the people picker column email field, and use it to grant permissions. Have a look at this example:

permission.png

 In the TimeSheet list there's a people picker column named Employee, so I can read its email when an item is created.

Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

Highlighted
Super User III
Super User III

Hi @cardinalpipkin 

 

If you accessing these from a different list then you need the following JSON schema to iterate the values.

 

{
    "type""array",
    "items": {
        "type""object",
        "properties": {
            "@@odata.type": {
                "type""string"
            },
            "Claims": {
                "type""string"
            },
            "DisplayName": {
                "type""string"
            },
            "Email": {
                "type""string"
            },
            "Picture": {
                "type""string"
            },
            "Department": {},
            "JobTitle": {}
        },
        "required": [
            "@@odata.type",
            "Claims",
            "DisplayName",
            "Email",
            "Picture",
            "Department",
            "JobTitle"
        ]
    }
}
 
 
image.png
 
Thanks
 


Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials
Highlighted
Super User
Super User

Hi @cardinalpipkin Please follow the steps below for multiple users in the people picker field.

image.png

 

 

 

 

 

 

 

 

 

 

 

 

 

Initialize the 'Users' variable to store all the email addresses.

sudharsan1985_1-1600181889655.png

Initialize another variable to store the ';' separated email addresses

sudharsan1985_2-1600181973704.png

Pass the above-declared variable to the below action

image.png

 

 

 

 

 

 

 

 

 

 

 

You can also use the 'Grant access' action inside the 'Apply to each' which will increase the transaction calls to 'SharePoint'. To reduce that, try to use the above steps.

 

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...

 

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,943)