---
sourceDocument: Brazil Build workflows
sourceDocumentLink: https://www.servicenow.com/docs/r/build-workflows

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build workflows

ft:clusterId :

    - crworkflow

bundleId :

    - crworkflow

workflow :

    - Creator


---

# Flow roles

# Flow roles {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Flow roles

Flow roles in ServiceNow enable you to create flows and subflows that run with specific user roles rather than inheriting roles from the user who initiates the flow.
This capability allows you to control permissions and execution context more precisely for user-initiated flows, enhancing security and operational flexibility.
Show full answer Show less  

## Key Features

* **Role Assignment:** You can assign multiple roles to flows that run as the initiating user. If no roles are assigned, the flow runs with the initiator's roles. Flows running as the system user run with the system role and cannot have roles assigned manually.
* **Role Restrictions:** Some high-security roles such as `admin`, `securityadmin`, and application-specific admin roles cannot be assigned to flows.
* **Modification and Copying:** Users need the assigned roles to modify a flow. If they lack any assigned role, the flow is read-only for them. When copying a flow, assigned roles are removed, and the copy runs with the system role or the initiator's roles.
* **Handling Missing Roles:** If a role assigned to a flow is missing (e.g., after moving between instances), the flow cannot be saved until the role is removed or restored in the instance.
* **Subflow Role Independence:** Subflows run with their own assigned roles and do not inherit roles from the parent flow. When returning to the parent flow, any child flow roles are removed.
* **Execution Visibility:** You can view the roles a flow ran with in the execution details, which helps in auditing and troubleshooting.
* **Access Control Lists (ACLs):** Assigning roles to a flow does not automatically grant access to records or tables. ACL rules and additional conditions still apply and should be reviewed if access issues occur.
* **AI Agent Role Override:** Flow roles configured in Workflow Studio take precedence over roles inherited by AI agents from dynamic or specific AI users. To run a flow with AI user roles, remove the assigned flow roles.

## Practical Application for ServiceNow Customers

By leveraging flow roles, you can precisely control the permissions under which your flows execute, securing automated processes and ensuring compliance with organizational policies. This feature is especially useful when you want a flow to perform actions requiring elevated or restricted permissions that differ from the user's default roles. Understanding role restrictions, management of flow copies, and the impact on subflows helps you maintain consistent security standards and avoid access issues. Additionally, reviewing ACLs remains crucial to guarantee flows have the necessary access to perform their tasks.  
Create flows and subflows that run with specific roles. Assigning roles enables you to create user-initiated flows that run with their own roles rather than the user's roles.

## Role selection {#flow-roles__section_orj_3ff_jlb}

A flow runs as either the system user or as the user who initiates the session. You can only assign roles to flows that run as the user who initiates the session. When the flow runs as the system user, it runs with the system
role, and individual role selection isn't available. For more information, see [Create a flow in Workflow Studio](https://www.servicenow.com/docs/n~fOsDedq_AYbOtGbZ5Nww "Run a sequence of actions and flow logic when the trigger conditions occur.").

You can assign multiple roles to a flow. Selecting new roles replaces the flow's original roles. If roles aren't selected, the flow runs with the roles of the user who initiates the session.  
The roles you can select for a flow depend on the roles you have and the application scope of the flow. Assign any roles you that have access to in a particular scope, except high-security roles. You can't assign the following roles to a flow:

* admin
* security_admin
* application-specific admin roles, such as an application admin role for Human Resources.
{#flow-roles__ul_wrt_3gf_jlb}

## Modified and copied flows {#flow-roles__section_btp_pff_jlb}

Other users can modify and copy your flow. To modify a flow, a user must have the same roles as the flow. Users missing any of the roles assigned to the flow, sees the flow as read-only.

When you copy a flow, the assigned roles are removed. The copied flow runs with either the system role or the roles of the user who initiated the session.

## Missing roles {#flow-roles__section_wh5_qff_jlb}

Sometimes a flow refers to a role that is not on the instance. The missing role may have been removed or may not exist on the instance. Either situation can occur when moving a flow between instances. When a role is unavailable,
the Run with role(s) field displays the sys_id of the role instead of its name. While the role is missing, you cannot save changes to the flow. To save flow changes, either remove the role from the flow or
add it to the instance.

## Flow roles in execution details {#flow-roles__section_jbt_xgf_jlb}

You can see the "Run with" roles for a flow by viewing the flow execution details. Use the Run As field to determine which user ran the flow. Only flows that ran as the initiating user can have roles
assigned. These flows have a Run with role(s) field that displays the roles assigned to the flow.

## Subflow roles {#flow-roles__section_sly_4gf_jlb}

Flows and subflows each run with their own roles. Subflows don't inherit roles from a parent flow. When flow execution returns to a parent flow from a child flow, any special roles associated with the child flow are removed. The
parent continues execution with its own roles.

## Access control lists {#flow-roles__section_qd5_rff_jlb}

Assigning a role to a flow doesn't guarantee that the flow can access a record or table. While roles are an important part of access control lists (ACLs), they are just one possible condition. If a flow cannot access the records
you expect it to, review the record ACL rules for the table and fields. The ACL rules might require additional criteria to grant access. For more information, see [access control list rules](https://www.servicenow.com/docs/access?context=access-control-rules&version=brazil&pubname=brazil-platform-security&ft:locale=en-US).

## Flow roles override AI agent roles {#flow-roles__section_br4_w4l_fhc}

A flow always runs using the roles it has been configured to run with in Workflow Studio. Flow roles override any roles inherited by an AI agent from a dynamic user or a specific AI user. If you want a flow to only run with the roles inherited from a user, remove flow roles. For
information about adding roles to an AI agent, see [Define security controls for an AI agent](https://www.servicenow.com/docs/access?context=define-sec-controls-aia&version=brazil&pubname=brazil-intelligent-experiences&ft:locale=en-US).

