-
Is it possible to grant delete permission using apex managed sharing?
I have Custom_Object__c with:
Org-Wide Default Settings as: Private
Object Permissions in the user Profile: Create, Read, Edit, Delete.
I have a small development in Apex that is creating some apex managed sharing rules, to give certain users access to records they don't own. So far I only needed to give the users either "Read" or "Edit" permissions. So all worked ok.However, now I need to grant users delete permissions for records they don't own. Without touching profile nor org-wide default settings. This would mean creating the apex managed sharing rules with accessLevel = 'All'.
I looked into the documentation, it seems to say that it's not possible to do that.
Log In to reply.
Popular Salesforce Blogs
How to connect multiple accounts to single contact in Salesforce?
Setups to connect contacts to multiple accounts is quite easy and quick. Following are the steps to be followed: Go to Setup, enter Account Settings…
Retrieve picklist value of a Record Type using MetaData Service in Salesforce
Picklist values are able to see using standard UI of sObject then field name and then record type name. What if we want to see…
Driving Operational Excellence with Lightning-Powered Enterprise Apps and Salesforce Development Partners
For a business to perform optimally and grow sustainably, its core and supporting departments, including marketing, sales, services, and human resources, require digital solutions to…
Popular Salesforce Videos
Learn Apex Triggers Part 1 in Salesforce Development
In this video, you will be learning about Apex Triggers in Salesforce Development: We will be discussing the following things in this video: 1. What…
Use Salesforce Notification Builder to Get Notifications to the Right Users in the Right Apps
Did you know you can use Notification Builder to create custom notifications for teams, task queues, and public groups? You can also replace standard notifications…
Transition to Salesforce Lightning Experience
Transition to Salesforce Lightning Experience for Overall Navigation, Global Search, Home Page, Accounts, Leads and Opportunities. This video walks you through the recommended process, including…