Skip to main content

roles

Creates, updates, deletes, gets or lists a roles resource.

Overview​

Nameroles
TypeResource
Idfivetran.account.roles

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe role name (example: Destination Administrator)
replacement_role_namestringThe name of the new role replacing the deprecated role (example: Manage Destination)
descriptionstringThe role description (example: Role Description)
is_custombooleanDefines whether the role is standard or custom
is_deprecatedbooleanDefines whether the role is deprecated
scopearrayDefines the list of resources the role manages (ACCOUNT, DESTINATION, CONNECTOR, TEAM)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcursor, limitReturns a list of all predefined and custom roles within your Fivetran account.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
cursorstringPaging cursor, [read more about pagination](https:​//fivetran.com/docs/rest-api/pagination)
limitinteger (int32)Number of records to fetch per page. Accepts a number in the range 1..1000; the default value is 100.

SELECT examples​

Returns a list of all predefined and custom roles within your Fivetran account.

SELECT
name,
replacement_role_name,
description,
is_custom,
is_deprecated,
scope
FROM fivetran.account.roles
WHERE "limit" = '{{ limit }}'
;