Case owner change fails with NoAccessException
Last updated 2017-10-14 ·Reference W-3990404 ·Reported By 1 users
Summary
When an active process on a case updates the Case Owner, and the case creator has a clone of the "Standard User" profile with "View All Data" enabled and "View All Users" disabled, and the case owner is changed to a System Admin user with "Send Notification Email" checked, the users will receive a NoAccessException error instead of the ownership changing as expected.
Repro
Creating a customer user and user profile
================================
Goto setup page→ Manage Users→ Profiles
Clone the “Standard User” profile
Name it “STDUser”
Enable “View All Data”
Make sure “View All Users” is disabled
Under Manager Users→ Users, click New user
Fill in all the required details with License: Salesforce and Profile:STDUser and save
Creating a process
===============
Goto setup page→Process builder
click new
Process Name: UpdateCaseOwner
The process starts when: A record changes
+Add Object: Case
Start the process: when a record is created or edited
+Add Criteria
Criteria Name: always
Criteria For Executing Actions: No criteria—just execute the actions!
+Add Action under Immediate Actions
Action Type: Update Records
Action Name: updateOwner
Record Type: [Case].Owner Id(User)
Criteria for updating records: No criteria—just update the records!
Field: About Me; Type: Reference; Value: [Case].CaseNumber
save
Activate the process
Login as the newly created standard user and create a case object
The case object is created with the newly created std user as the case owner - also it can be noted that the case number will be present in the about me section of the user.
Now click change owner and choose the “System Administrator” user and check “Send Notification Email” and hit save.
The operation fails with “NoAccessException”
Workaround
Ensure the "Send Notification Email" checkbox is unchecked.
Reported By (1)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.