-
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
How to call Apex Method from Flow and Vice – Versa? | Salesforce Apex
Spring '23 features that align with your core admin responsibilities. Release Highlights for Admins Salesforce Admins drive innovation with four core responsibilities: User Management, Data…
What are Data Types in Apex in 2023?
What is a Data Type in Salesforce Apex? In Salesforce Apex, a data type is like a category or a label that tells the computer…
Unleash the True Potential of Salesforce with Professional Administration Services
There are fair chances that you are sold out on the expansive range of features and benefits that Salesforce offers. However, the issue arises when…
Popular Salesforce Videos
Driving Gamified Interactions on Salesforce Communities With ScoreNotch | Use-Cases
A Salesforce-native, Lightning-ready solution, ScoreNotch enables you to dynamically gamify Salesforce communities. Watch this video to learn more about its use-cases. For more, please visit…
What are Search Layouts in Salesforce?
In this video, Shrey is not only teaching but also demonstrating to you "What are Search Layouts in Salesforce". You will be learning: 1. How…
Man Free Climbs 1,070-foot Salesforce Tower in San Francisco
A man free climbed San Francisco's Salesforce Tower Tuesday morning in response to the leaked draft in the Supreme Court Roe v. Wade abortion case.…