I've run into a problem when setting up the CRM for the Service Department. They want to be able to make it so users that are not the owner can not go into a Case and delete Tasks associated with that specific Case.
I looked into security roles but I didn't see Tasks as something you can set privileges for. The only solution I've come up with so far is to remove the delete button from the ribbon but I foresee that being a problem if the Owner wants to delete a Task themselves.
Does anyone know of another way to make this possible?
can't check right now if Task has a separate row inside the security role settings or it belongs to the Activity row, but in the second case you can create a synchronous plugin that will stop the delete if the user is not the task's owner
My blog: www.crmanswers.net - Rockstar 365 Profile - Follow me on Twitter
You can achieve this using Security Roles.
Give User Level Privilege for Create and Read to Case Entity. This will not allow any users to read the case which does not belong to that person (meaning that he is not the owner).
Once this is achieved, the users cannot delete the Task Associated to the Case Record since they cannot go into the Case Record.
Task is a part of Activity and it is controlled by Activity Security Role
If you want to turn of the delete for Task, you need to revoke the Delete privilege in the Activity Entity.
"The Task entity uses the same privileges as all activity entities. For more information see ActivityPointer (activity) entity privileges."
But, remember, the user assigned to this role will not be able to delete another activity type.
Other way, you can using display rule for the Delete ribbon on the Task entity, not totally hide it or creating a plugin to validate it by specific case.
Hope this helps.
Thanks for the quick responses everyone, it helped me out a lot.