-
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
Optimization of Salesforce Org - Everything You Need to Know
In this blog we’ll learn about Optimization, why is it necessary, how can we optimize apex class, the highest execution duration of an apex class,…
Salesforce Year 2021 Highlights
As we come to a year-end, we cannot wrap up the year without acknowledging all the significant and game-changing work Salesforce has done in the…
Unleashing Collective Intelligence: How Salesforce Communities Empower Ideas Management
Organizations are realizing the immense value of collective intelligence in driving innovation and staying ahead of the competition. Collective intelligence refers to the collective knowledge,…
Popular Salesforce Videos
Six Minute Salesforce : The Schema Object
The various objects and their relationships of a Salesforce application can be easily viewed using the Schema builder. Schema builder has a drag and drop…
Are Privacy laws anti-marketing? - Salesforce, GDPR and CCPA
Are Privacy laws anti-marketing? Or a great marketing opportunity for organizations? Perhaps the underlying question is: Is your Marketing outreach an unwanted nuisance? Or worse,…
Create Custom Object, Tabs and ListView in lightning, Salesforce
In this video, DeveloperTrix explains how you can create custom objects, custom object tabs, and list views in the Salesforce platform. He also covers how…