Skip to main content


 

Symptoms


Customer was running into an issue where he was attempting to remove list item permissions and add permissions to the specific user that created the list item.

 

Diagnoses


For this specific scenario it is possible to allow only specific users access to list items they have created. This can be done using workflow events, this is explained in the Resolution for the ticket.
 

Resolution

To configure a workflow to remove list item permissions, then grant permissions to the individual who created the list item, follow these steps:

1. Create a list/ library.
2. Appify the list, on the artifacts creation page select Forms, Workflow and Reports.
3. When the Workflow Designer launches locate the List Items category. In this category drag in the "Remove List Item Permissions" event into the first empty step of the workflow.
4. Configure this event to remove "Everyone", this will remove all users permissions for the list item.
5. Finish this wizard.
6. Create a new workflow step.
7. To be able to add specific user permissions to the list item, locate the SmartObjects tab of the Workflow Designer. In the list of SmartObject events find and drag the "Add User or Group Permissions to List" event into the empty workflow step.
8. When the wizard for this event opens drag in the ID field from the list's item references into the required ID text box.
9. For the Specify Users and Group text box locate the following: Context Browser > Workflow Context > Originator Name. Drag in the Originator Name field into the Specify Users and Groups text box.
10. For Specify Permissions type in the permission level wanted. For this example Full Control is given.
11. Click Next, then Finish.
12. Deploy the workflow.

After the workflow has been deployed, testing should be done to ensure that all items that are submitted by a user are visible only to them. This test will need to be done using multiple accounts to ensure this configuration is correctly done.




 

we are also getting error in K2 Five for sharepoint . Also in K2 Five for sharepoint there is no specific component/event related to "Remove List Item Permissions". please let me know if any workaround in K2 five for sharepoint.


Reply