20

Regarding field-level security, does Lightning Process Builder run as system-level permissions or user? That is:

  • Can I trigger an update to a field that the current user cannot edit?
  • Can I filter based on a field the current user cannot read?

4 Answers 4

22

According to this answer:

Process Builder runs in the system mode so the object and field level permissions both will be ignored for the user who triggers the Process.

4
  • I am trying to resolve a problem surrounding this, here: salesforce.stackexchange.com/questions/170497/… ... namely, how to identify in a VALIDATION RULE that it's Process Builder running so a bypass can be set.
    – AMM
    Apr 18, 2017 at 20:14
  • 1
    I don't think this answer is true. Processes built in Process Builder run as the User who triggered it. I've tried and tried and even seen this Idea Post on Salesforce IdeaExchange. https://success.salesforce.com/ideaView?id=08730000000Dx9sAAC
    – Tamim J
    Apr 19, 2018 at 22:09
  • 2
    Sure, the process runs as the user, but permissions are system-like. Like if the user doesn't have access to a field the process updates, the process will update it anyway and the "last modified by" will be set to that user anyway (thus ignoring permissions). Apr 20, 2018 at 3:22
  • 2
    That doesn't seem to apply when the user is REST Guest User. When the process is triggered by record change or platform event initiated by an API call through a REST site (guest user context), the process throws an error (citing REST Guest User context) when trying to post to Chatter, and just does nothing if you try to fire a Custom Notification. Jul 8, 2019 at 18:41
5

Process Builder always runs in System context and hence you can edit the record or read the record even if user does not have access to the same .

3
  1. System mode: – In which the object and field-level permissions of the current user are ignored.
  2. User mode: – In which the permissions, field-level security, and sharing rules of the current user are enforced.
  3. Flow runs in user mode.
  4. Process Builder runs in system mode. When you launch a Flow using the Process Builder, then it will run in system mode.
1
  • Actually, as of April 25, 2021, I realized flows don't ignore user permissions.
    – Remario
    Apr 25, 2021 at 23:56
2

NOTE: If your Process Builder calls a Flow, and that Flows uses an Invocable Method (Apex), and the user doesn't have access to the apex class that houses the Invocable Method, the Flow will error. Make sure the profile/permission set of the user has the class added to Enabled Apex Class Access.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .