---
title: "Roles (Pipedrive)"
description: "Roles"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/pipedrive/Pipedrive.Users.Roles
original: https://documentation.invantive.eu/en/datamodels/pipedrive/Pipedrive.Users.Roles
updated: 2026-11-01T16:22:11Z
license: https://documentation.invantive.eu/en/
---

# Roles: Pipedrive Roles

`insert` `update` `delete` `REST`

- Catalog: `Pipedrive`
- Schema: `Users`
- Primary Keys: `id`
- Label: Roles

Can retrieve data and change data using `insert`, `update` and `delete`.

## Summary

The roles users can have. Each request costs 20 tokens of the daily budget of the company.

## API Source

- Endpoint: `/roles`

## Table Columns

The columns of the table `Roles` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `active_flag` | `char` | Active Flag | [ ] | filters on the platform, writable, computed, `active_flag` | Whether the role is active or not. |
| `assignment_count` | `varchar2` | Assignment Count | [ ] | filters on the platform, writable, computed, `assignment_count` | The number of users assigned to this role. |
| `id` | `int64` | ID | [x] | filters on the platform, writable, computed, `id` | The ID of the role. |
| `level` | `int64` | Level | [ ] | filters on the platform, writable, computed, `level` | The level of role in the role hierarchy. |
| `name` | `varchar2` | Name | [ ] | filters on the platform, writable, `name` | The name of the role. |
| `parent_role_id` | `int64` | Parent Role ID | [ ] | filters on the platform, writable, `parent_role_id` | The ID of the parent role. |
| `sub_role_count` | `varchar2` | Sub Role Count | [ ] | filters on the platform, writable, computed, `sub_role_count` | The number of sub-roles. |

## Keys

| Key | Column | Refers to | Kind | Description |
|---|---|---|---|---|
| `Roles_parent_role_id_fk` | `parent_role_id` | [Roles](Pipedrive.Users.Roles)`.id` | Key |  |

## Referenced By

- [CurrentUsers](Pipedrive.Users.CurrentUsers) `role_id` (Key)
- [Roles](Pipedrive.Users.Roles) `parent_role_id` (Key)
- [Users](Pipedrive.Users.Users) `role_id` (Key)

