-
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

Salesforce Financial Services Cloud Summer '23 Highlights
Salesforce's Summer '23 update for Financial Services Cloud is around the corner and packed full of bright new features. Whether it's Actionable Segmentation going GA,…

Benefits of Salesforce CRM For Startups
As a startup business, it can get challenging to have a strong first quarter once you begin operations. This is primarily due to the missed…

Order of Execution in Salesforce
Order of execution in salesforce is like an ABC in Salesforce World, make sure you should understand:- System Validation rule(required field, field format). Before Trigger…
Popular Salesforce Videos
How to Manage Your Data and Contacts in Salesforce Marketing Cloud
Learn how contacts are counted and how data is structured in Marketing Cloud. This video explores how Marketing Cloud receives data from many sources and…
Tour to the Dreamforce National Park!
What happened at Dreamforce? #ArtificialIntelligence was a consistent theme, a lot more about Commerce, about Customer 360, etc Missed Dreamforce? Then, take a tour of…
Salesforce Administrator and App Builder Training
S2 Labs Salesforce admin certification training Tutorials for FREE. In this course, you will learn about the Salesforce Platform Basics, customizing Salesforce with Lightning Experience…