Set Item Permissions
Sets the SharePoint item-level permissions for the current item being routed or another specified item. This plug-in sets the permission set(s) for the given user on the given item.
Value Pair | Description |
copyfromparent | Copies permissions from parent before applying the specified changes. |
filepath | The full path to a SharePoint file whose permissions should be changed. This argument should not be used with any other arguments, except for possibly copyfromparent. |
folder | Sets the permissions on the folder. Folder parameter specified as -DocLibraryName/FolderName. |
itemid | The SharePoint item id whose permissions should be modified. |
list | The name of the list in the site where the item resides whose permissions should be modified. |
permission | The name of the permission set to assign to the user. |
site | The URL of the site containing the item whose permissions should be changed. |
username | The user whose permissions should be set. |
NOTE: If site, list, and itemid are omitted, the permissions on the item being routed will be changed.
Example
- username = [$CurrentUser.LoginName]
- permission = Contribute
This will give the current user the Contribute permission on the current item being routed.