-
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

A Beginner In Salesforce?
A beginner in Salesforce?? No need to fret…just read on: Now, the next question that comes to mind after a brief introduction (previous post) about…

How to Select a Certified Salesforce Consultant?
Cloud computing was always there in one form or another, but it has started to really develop in the past half-decade or so. Salesforce is…

7 Tips for Choosing the Best Salesforce Consulting Partner for Your Business
Salesforce is the juggernaut of CRM’s – and for good reason. The platform can help streamline many facets of your business from the sales process…
Popular Salesforce Videos
Cross Component Communication with Custom Events | Salesforce Developer Quick Takes
In this Quick Take, we will learn how to take Custom Events and apply them to a common use case. We’re first going to take…
Salesforce Payments - Everything You Need To Know
Learn more about Salesforce Payments and get the checklist - "10 Ways To Make Salesforce Payments Safe, Easy And Profitable" In this checklist, you'll learn…
Before Delete Trigger in Salesforce Flows - Winter '21 update
In this video, I'm talking about one of the new features of the Salesforce Winter '21 flow builder i.e is before delete trigger. Watch and…