I have a list and when I create an item on it, a workflow runs and when it completes I don't want anyone to edit that item in the list.
I have contributor permission on the list. I am running a workflow when an item is created, once this workflow completes I want this item to be read only.
I have tried "Set Item Permission" but I am still able to edit an item.
If anybody had this kind of requirement, Please let me know I am ready to explore any other also.
Thanks in advance.
Have you checked the permissions on that item in the list to see if they are indeed being set or not?
If you click on the item and select Shared With. It should show you who it's shared with.
Then click on Advanced and you'll see the types of permissions on that item.
An additional check you can do is:
have the users that start the workflow (or who create/upload/modify the item/document if it's set to start automatically) rights to change permissions on the item?
If they just have Edit or Contribute, they're not able to modify permissions so that action won't work unless you set it to run as workflow owner and you publish the workflow with a user with enough rights.
Hi Prashant Singh,
1) Make sure that the workflow is published with Farm Admin/Site collection admin account, so that it has full access on this site/library
2) under Set Item Permission action item > Common > select "Run as workflow owner" so that it impersonates the admin account to make the updates to the permission. This will eliminate the possibility of the user who is starting the workflow, NOT having permission to update the permission. (God! so many "permission" words )
3) since there was update made to the item, use Commit Pending changes action to commit the changes.
Hope this helps !
Thanks Vadim for guiding on this.
Being member of "IT Group" i Checked the permission:
Then I clicked on "Show these items"
Then Clicked on "Manage Permission". It looks like the permission is getting set as shown below but still I am able to edit the item.
I published the workflow from the account and the machine where sharepoint and nintex is installed.
Modified the Set Item Permission action item with "Run as workflow owner"
But no luck it still allowed me to edit the item. Though If I checked permission on the individual item as suggest by Vadim , its says Everyone Readonly.