-
Insufficient access right to user error while accessing email attachments in Salesforce
I am facing Insufficient access right to user error while trying to access email attachments through programmatic backend code. This is working fine for System Administrator group however, for any other profiles we are getting this error despite giving those profiles full access to Case object. Other profiles are able to access cases and case attachments but they are NOT able to access email attachments attached to cases.
It seems Salesforce treats email attachments different than case attachments and accessing email attachments through programmatic backend code may require additional or specific permission. As a workaround, we followed below mentioned steps to give “MODIFY ALL DATA” permission to intended profile. However, this is NOT ideal solution and hence wanted to check why Salesforce is treating Case Attachments and Email Attachments on Cases differently and what’s the best way to resolve this issue.
- click on SET-UP link
- search PROFILE in QUICK-SEARCH box
- go to the profile which you want to give permission.
- click on EDIT button.
- go to Administrative Permissions section and select MODIFY ALL DATA checkbox
- now click on SAVE button
Log In to reply.
Popular Salesforce Blogs
Common Mistakes while Performing Salesforce Integration: What not to do
Integration means combining two different systems, portals, applications, etc with each other in order to make them as one application. Integration is very widely implemented…
Salesforce Lightning on Your Mind? Here’s Everything You Need to Know About Migration Process
Sixty-nine percent of users say that it is easier to use their Salesforce instance today than it was 12 months ago. But not everyone is convinced. A…
Deploying Process Builder Through Change Set | Salesforce Developer Guide
We can understand process builder as a point-and-click apparatus that lets you effortlessly mechanize if/then trade forms and see a graphical representation of your handle…
Popular Salesforce Videos
About Queueable Apex | Asynchronous Apex in Salesforce | Learn Salesforce Development
Queueable apex is an asynchronous apex method. It's similar to the @future method. By using this queueable interface, we can process an Apex that runs…
TrailheaDX 2020 - How Salesforce Plans To Make Virtual TDX2020 Better
For Salesforce, taking TrailheaDX digital is about more than just keeping the event going, the company wants to make TDX a better, more inclusive, and…
How to Download Backup Files from Salesforce Using UIPath Robots
How to download backup files from Salesforce using UiPath robots. How to get the latest file from the folder: Directory.GetFiles(“YOUR FOLDER”).OrderByDescending(Function(d) New FileInfo(d).CreationTime).First The link…