Question

I am trying to create a Collect Feedback and an Approval workflow in SharePoint 2010 Designer. I always get error occurred when permission is granted/revoked to multiple user (supplied by the user) in the workflow. When permissions are granted to a single user, the workflow functions.

First, I am setting user permissions, then starting the approval/feedback task. The error occurs while assigning permission to multiple users.

Some More details - The workflow is working on a document set with content approval and versioning enabled.

Was it helpful?

Solution 4

SharePoint Designer workflow does not handles adding permissions to multiple user separated via semicolon in a listitem field with Out-of-box available actions.

The requirement is that I do not have a fix set of users and users access vary with each listitem (document set library item) specified by item field.

I even checked this issue with the Microsoft guys and they told me this limitation of SharePoint Designer.

So we have to create custom workflow activity. For creating Custom workflow activity refer this link. The technique for creating csutom workflow activity is not very different from SharePoint 2007. This is a very good tutorial to do the same and despite the tutorial is for SharePoint 2007 it works even for SharePoint 2010.

OTHER TIPS

Here is how we assigned permissions based on a multiple-choice people field in SharePoint 2010:

1) Set a STRING variable to the multiple-choice people field, returning the field as a STRING.

2) In an Impersonation Step, add the action to Add/replace item permissions. Use the string variable you just defined as the User.

Hint: If you need to also send an email to the users that just received permissions, you will need to set a second, string variable to the multiple-choice people field, returning the field as a email addresses, semi-colon delimited.

If you give the "Add List Item permission" activity the users string in the below format it will work

UserId;#Full Name;#UserId;#Full Name;#UserId;#Full Name

Example

53;#Alex Kropp;#28;#Bill Maxwell;#22;#Thomas Wite;#31;#Nancy dJ

You just need to create activity that accepts two parameters (Display Names with semi colon and User Ids with semi colon) and this activity will generate the above string and place it into a variable.

Then use this string variable with "Add List Item permission"

What about assigning permissions in multiple impersonated steps? Other thing you can do is see what the error is, if you have access to SharePoint server. There you can open the log with ULS viewer, and filter by category "Workflow Infrastructure". Hope that helps.

I solved the problem this way, when permissions are granted the variable who contains the users select return field as "User Ids, semicolon delimited" enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top