Microsoft.SharePoint.WorkflowActions.CreateTask
(1)
SPRoleType.Administrator
(1)
SPRoleTypeEnum
(1)
TaskObject.TaskProperties.AssignedTo
(1)
SPRoleType
(1)
SharePoint
(1)
HybridDictionary
(1)
HybridDictio
(1)

Task: Set Edit rights without the right to delete via HybridDictio

Asked By Bernhard Gelderblom
20-Nov-09 04:27 AM
Hello,

I a task which is assigned to a user. This user receives rights for that
task via a hybrid dictionary. At the moment, he receives Admin rights

This includes the right to delete the task. The other enumeration values of
SPRoleType which grant edit rights include the right to delete the task as
well.

Is there a possibility to grant edit rights for a single task without
granting the right to delete it?

Thank you in advance

Code snippet:
HybridDictionary permsCollection = new HybridDictionary();

permsCollection.Add(TaskObject.TaskProperties.AssignedTo, SPRoleTypeEnum);

TaskObject.SpecialPermissions = permsCollection;

( SPRoleTypeEnum has the value SPRoleType.Administrator.
TaskObject is of the type Microsoft.SharePoint.WorkflowActions.CreateTask )
Post Question To EggHeadCafe