sym.sdk.integrations.onelogin.list_roles

sym.sdk.integrations.onelogin.list_roles(name_filter: Optional[str] = None) List[dict]

Returns a list of all roles in the OneLogin account configured in the current Environment. Roles are represented as dictionaries, whose structure is defined by the OneLogin API.

Details here: https://developers.onelogin.com/api-docs/2/roles/list-roles

Note that if more than 650 roles exist in the OneLogin account, this call will fail. This is a limitation of the OneLogin API.

Parameters

name_filter – If provided, only roles whose name contains the given string will be returned.

Returns

A list of dictionaries representing OneLogin roles.