Title
Create new category
Edit page index title
Edit category
Edit link
Create a Role
Use the Create a Role API to create a custom role in Pulse.
A role defines the permissions and cluster-level access that can be assigned to users. A role consists of one or more clusters, a set of permissions, and optional user or Active Directory (AD) group mappings.
Before invoking this API, authenticate with the Pulse server. For more information, see Authenticate with Pulse APIs.
Endpoint
Property | Value |
|---|---|
Method | POST |
Endpoint | /graphql |
API Type | GraphQL |
Request
Invoke the addRole GraphQL mutation to create a role.
Because the request payload can be large, store it in a JSON file and reference it by using the -d @<file> option.
Run the following command:
Example Request
The following example creates a role named DataEngineer.
Request Parameters
Field | Required | Description |
|---|---|---|
Field | Required | Description |
| Yes | Specifies a unique name for the role. |
| Yes | Specifies the clusters to which the role applies. |
| Yes | Specifies the permissions assigned to the role. Each permission key must be set to |
| Yes* | Specifies the allowed YARN service queues for each cluster. |
| Yes* | Specifies the allowed service users for each cluster. |
| Conditional | Specifies the allowed Impala users for each cluster. Required only when Impala is used. |
| No | Specifies the Active Directory groups mapped to the role. |
| No | Specifies the Active Directory users mapped to the role. |
Example Response
Validation Rules
When creating a role:
Specify at least one cluster.
Enable at least one permission by setting its value to
true.Ensure that the role name is unique.
Configure
serviceQueuesandserviceUsersfor each cluster.Configure
impalaUserswhen assigning Impala permissions.
Configure Role Permissions
The permissions object is a flat map of permission keys.
To grant a permission, set its value to true.
For the complete list of supported permission keys, see Role Permission Reference
For additional help, contact www.acceldata.force.com OR call our service desk +1 844 9433282
Copyright © 2026