2

I would want to remove edit/delete permissions on activity records (Lead, Account, Contact and Opportunities) for regular users. Only system administrators are to be provided with these permissions. How could I achieve this scenario.

2
  • Are you asking about Activity records on standard objects like Lead, Account, Contact, and Opp or about those objects themselves?
    – greenstork
    Jan 30, 2014 at 20:34
  • that's pretty big brotherish... wow! juicy story behind this question? Jan 30, 2014 at 21:46

3 Answers 3

1

I did figure it out and I have used rendered="{!if($Profile.Name == 'System Administrator',true,false)}" which eventually worked by only allowing System Administrators to have the edit/delete functionalities

0

You can't restrict access to Activities (Tasks and Events) at an object level (profile). However, you can control record level permissions with sharing settings. Most Salesforce instances have activities sharing settings set to "Controlled by Parent" so the parent record associated with the activity controls who has access to edit the record based on the sharing settings for that parent object. You can however make Activities completely private and create sharing rules or manage sharing with apex.

0

You could write a before update/delete trigger on Activity to achieve this.

Check for the profile and then decide to allow the edit or delete. If its not the System admin then throw an error in your trigger.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .