Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
ReferenceBeta

Role access

Reference for what a role grants: the workspaces it reaches, and the products, features, and data resources it covers, with the matching input types.

What a role grants: the workspaces it reaches, and the products, features, and data resources it covers, with the input types that set them.

Objects

IamSelection

A choice among a set of items: every current and future item when all is true, exactly items otherwise. What an item is depends on the field: a workspace id for IamRole.workspaces, a feature code for IamRoleProductScope.features, a data-resource item id for IamRoleDataResourceGrant.items.

Field
Type
Description

all

Boolean!

Whether every current and future item is selected. items is empty when this is true.

items

[String!]!

The selected items when all is false.


IamRoleItemActions

The actions a role grants on one data-resource item, in place of its grant's actions.

Field
Type
Description

itemId

String!

IAM's id for the data-resource item.

actions

[String!]!

The actions granted on this item.


IamRoleDataResourceGrant

What a role grants on one data-resource type of a product.

Field
Type
Description

resourceType

IAM's code for the data-resource type.

items

The items of this type the grant covers.

actions

[String!]!

The actions granted on every covered item, unless itemActions names the item.

itemActions

Per-item overrides: an item listed here gets these actions instead of actions.


IamRoleDataResources

The data resources a role grants within one product.

Field
Type
Description

all

Boolean!

Whether every data resource of the product is granted. byType is empty when this is true.

byType

One grant per data-resource type when all is false, ordered by resourceType.


IamRoleProductScope

What a role grants within one product.

Field
Type
Description

productCode

IAM's code for the product, such as bdr or iam.

features

The product's features the role grants, by feature code.

dataResources

The product's data resources the role grants.


IamRoleProductScopes

The products a role grants.

Field
Type
Description

all

Boolean!

Whether the role grants every product. specific is empty when this is true.

specific

One scope per product when all is false.


Inputs

IamSelectionInput

A selection to store: every current and future item when all is true, exactly items otherwise.

Field
Type
Description

all

Boolean!

Whether every current and future item is selected. items must then be empty.

items

[String!]!

The selected items when all is false.


IamRoleItemActionsInput

The actions to grant on one data-resource item, in place of its grant's actions.

Field
Type
Description

itemId

String!

IAM's id for the data-resource item. At most once per grant.

actions

[String!]!

The actions to grant on this item.


IamRoleDataResourceGrantInput

What to grant on one data-resource type of a product.

Field
Type
Description

resourceType

IAM's code for the data-resource type. At most once per product.

items

The items of this type to cover.

actions

[String!]!

The actions to grant on every covered item, unless itemActions names the item.

itemActions

Per-item overrides.


IamRoleDataResourcesInput

The data resources to grant within one product.

Field
Type
Description

all

Boolean!

Whether to grant every data resource of the product. byType must then be empty.

byType

One grant per data-resource type when all is false.


IamRoleProductScopeInput

What to grant within one product.

Field
Type
Description

productCode

IAM's code for the product. At most once per role.

features

The features to grant, by feature code.

dataResources

The data resources to grant.


IamRoleProductScopesInput

The products to grant.

Field
Type
Description

all

Boolean!

Whether to grant every product. specific must then be empty.

specific

One scope per product when all is false.


See also

Last updated

Was this helpful?