Create Role Hierarchy (Bulk)
sf_create_role_hierarchyCreate multiple Salesforce roles in a single call to establish role hierarchy and control record visibility across permission settings.
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 |