Skip to navigation

Create Role

Creates a custom role.

When creating a role, you’ll specify a list of permissions and, optionally, data access conditions. Data access conditions let you restrict the resources a permission is granted for. For example, for a particular role, you can set data access conditions to allow access only to resources without PII.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
namestringRequired
Role display name. Must be unique in your Eon account.
permissionGrantslist of objectsRequired
Permissions granted by the role.
accessConditionslist of objectsOptional

If present, the ID of the set of access conditions that restrict the resources the permission is granted for. The ID must be present in an entry in accessConditions, and the permission itself must support access conditions. If omitted, the permission is granted for all resources.

restoreDestinationLimitsobjectOptional
Limits the restore accounts that can be used as restore destinations for operations granted by the role.

Response

Role created.
roleobject
Role.

Errors

400
Bad Request Error
409
Conflict Error