Create Role Hierarchy (Bulk)
sf_create_role_hierarchyCreate an entire Salesforce role hierarchy in one call. Define roles with API names, display labels, and parent roles to control record visibility.
Instructions
Creates multiple Salesforce roles in the role hierarchy in a single call. Roles control record visibility — users in higher roles see records owned by subordinate-role users (depending on OWD settings). Use to set up an entire hierarchy at once.
roles: array of {fullName, name, parentRole?, description?}
fullName: role API name (e.g. 'VP_Sales')
name: display label
parentRole: API name of parent role (omit for top-level)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roles | Yes | Roles to create in the hierarchy |