You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/business-apps/power-automate/guidance/manage-list-item-file-permissions.md
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,26 @@
1
1
---
2
2
title: Manage list item and file permissions with Power Automate
3
3
description: "SharePoint connector in Power Automate lets you grant access, create sharing links, or rescind access for items or folders."
4
-
ms.date: 06/28/2022
4
+
ms.date: 12/01/2022
5
5
search.app:
6
6
- Flow
7
7
search.appverid: met150
8
8
---
9
9
10
10
# Manage list item and file permissions with Power Automate flows
11
+
11
12
SharePoint connector in Power Automate provides the following actions to manage permissions of an individual list item in a list or a file in a document library.
13
+
12
14
- Grant access to an item or a folder
13
15
- Create sharing link for a file or folder
14
16
- Stop sharing an item or a file
15
17
16
18
All of the above actions let you customize permissions for the item or a file to allow the right users to access that item or the file. To grant access or stop sharing, you will need to be a list owner of that list or library. That means, in your flow for these actions, you must connect to the list or library using a list owner user account.
17
19
18
20
## Grant access to an item or a folder
21
+
19
22
The 'Grant access to an item or a folder' action requires the following inputs:
23
+
20
24
- SharePoint site URL
21
25
- List or library name or identifier
22
26
- The item or the file identifier for which to grant access
@@ -31,28 +35,34 @@ In the flow action, you can also include a message and choose to notify the reci
31
35
> 'Grant access to an item or a folder' does not support granting access to external users.
32
36
33
37
### Choosing a permission role to grant access
38
+
34
39
Depending on the user, you may want to grant them either access to edit or read. You can choose the right access in the Roles property.
35
40
36
41

37
42
38
43
The permission roles map to [simplified standard SharePoint permission groups](/sharepoint/modern-experience-sharing-permissions):
44
+
39
45
- Members
40
-
-Owners
46
+
-Visitors
41
47
42
48
### Using custom-defined roles to grant access
49
+
43
50
In advanced scenarios where you need to specify a custom-defined permission role, you can do so in the flow action by entering a custom value for the *Roles* property in the following format:
51
+
44
52
```
45
53
role:<role-id>
46
54
```
47
55
48
56

49
57
50
58
If you want to get the role id for the custom-defined role permission, you can do so by navigating to the SharePoint URL in your web browser and then search for that role.
@@ -62,6 +72,7 @@ You can find the role Id in the *category* property of an role item.
62
72

63
73
64
74
## Grant access using sharing links
75
+
65
76
Instead of granting users access to files directly, you can provide access to a specific file using [shareable links](/sharepoint/modern-experience-sharing-permissions#sharable-links).
66
77
67
78
You can use the '[Create sharing link for a file or folder](/sharepoint/dev/business-apps/power-automate/sharepoint-connector-actions-triggers#create-sharing-link-for-a-file-or-folder)' action to create shareable links for a given file.
@@ -72,13 +83,16 @@ You can use the '[Create sharing link for a file or folder](/sharepoint/dev/busi
72
83

73
84
74
85
When creating a shareable link using the action, you can specify:
86
+
75
87
- Link type
76
88
- Type of sharing link - view and edit or view only
77
89
- Link scope
78
90
- Who gets access to the link - anyone with the link, including anonymous or people in your organization
79
91
80
92
## Stop sharing an item or a file
93
+
81
94
The 'Stop sharing an item or a file' action requires the following inputs:
95
+
82
96
- SharePoint site address
83
97
- List or library name or identifier
84
98
- The item or the file identifier for which to stop sharing
0 commit comments