1

I want to add role assignment to a task (programmatically) when this task is created, but in the method invoking, the task is not created yet. (there is no ID and I can't add SPRoleDefinition)

How can I add roles to a new task? I can't find an "event" or something else when a task is created ...

Thank you.

1

Non programmatical way. You can use 2010 workflow with impersonation step where are permissions commands. Tick off Require Manage List permissions and set it to start when item is created.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.