Many times we want to restrict a task item only to be edited
by a person whom it is assigned to.
If a person has contribute access then by
default there is no way that we can restrict them to update the task list item.
When you are working with create task activity and create a
task, you can always create a special permission object and then assign it to
the task properties.
createtaskProperties.AssignedTo = "domain\\user";
System.Collections.Specialized.HybridDictionary
specialPermissions =
new System.Collections.Specialized.HybridDictionary();
specialPermissions.Add(createtaskProperties.AssignedTo,
SPRoleType.Contributor);
createTask1.SpecialPermissions = specialPermissions;
This is how you set permission
on task list item to allow only assigned to person edit that task list item.
4 comments:
After long gap,very interesting post.Kudos to share point kings team
Hi,
i exactly need this, but i dont understand where you get the createTask1 from?
Thanks
P.S.: Great Blog, i already found several times something on this!!!
Hi,
i exactly need this, but i dont understand where you get the createTask1 from?
Thanks
P.S.: Great Blog, i already found several times something on this!!!
Found it somewhere else, thanks anyway!!!
Post a Comment