# UserPermissionsByUserId
## Documentation
The permissions of one user. Each request costs 10 tokens of the daily budget of the company.
- Catalog: `Pipedrive`
- Schema: `Users`
- Primary Keys: `user_id`
This is a read-only table function. The Pipedrive API may not support changing the data or the Invantive UniversalSQL driver for Pipedrive does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Pipedrive API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `UserPermissionsByUserId`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `user_id` | `int64` | ☑ | | The user id. |
## Columns of Table Function
The columns of the table function `UserPermissionsByUserId` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `can_add_custom_fields` | `char` | | ☐ | If the user can add custom fields. |
| `can_add_products` | `char` | | ☐ | If the user can add products. |
| `can_add_prospects_as_leads` | `char` | | ☐ | If the user can add prospects as leads. |
| `can_bulk_edit_items` | `char` | | ☐ | If the user can bulk edit items. |
| `can_change_visibility_of_items` | `char` | | ☐ | If the user can change visibility of items. |
| `can_convert_deals_to_leads` | `char` | | ☐ | If the user can convert deals to leads. |
| `can_create_own_workflow` | `char` | | ☐ | If the user can create workflows. |
| `can_delete_activities` | `char` | | ☐ | If the user can delete activities. |
| `can_delete_custom_fields` | `char` | | ☐ | If the user can delete custom fields. |
| `can_delete_deals` | `char` | | ☐ | If the user can delete deals. |
| `can_edit_custom_fields` | `char` | | ☐ | If the user can edit custom fields. |
| `can_edit_deals_closed_date` | `char` | | ☐ | If the user can edit deals' closed date. |
| `can_edit_products` | `char` | | ☐ | If the user can edit products. |
| `can_edit_shared_filters` | `char` | | ☐ | If the user can edit shared filters. |
| `can_export_data_from_lists` | `char` | | ☐ | If the user can export data from item lists. |
| `can_follow_other_users` | `char` | | ☐ | If the user can follow other users. |
| `can_merge_deals` | `char` | | ☐ | If the user can merge deals. |
| `can_merge_organizations` | `char` | | ☐ | If the user can merge organizations. |
| `can_merge_people` | `char` | | ☐ | If the user can merge people. |
| `can_modify_labels` | `char` | | ☐ | If the user can modify labels. |
| `can_see_company_wide_statistics` | `char` | | ☐ | If the user can see company-wide statistics. |
| `can_see_deals_list_summary` | `char` | | ☐ | If the user can see the summary on the deals page. |
| `can_see_hidden_items_names` | `char` | | ☐ | If the user can see the names of hidden items. |
| `can_see_other_users_statistics` | `char` | | ☐ | If the user can see other users' statistics. |
| `can_see_other_users` | `char` | | ☐ | If the user can see other users. |
| `can_see_security_dashboard` | `char` | | ☐ | If the user can see security dashboard. |
| `can_share_filters` | `char` | | ☐ | If the user can share filters. |
| `can_share_insights` | `char` | | ☐ | If the user can share insights. |
| `can_use_api` | `char` | | ☐ | If the user can use API. |
| `can_use_email_tracking` | `char` | | ☐ | If the user can use email tracking. |
| `can_use_import` | `char` | | ☐ | If the user can use import. |
| `user_id` | `int64` | | ☑ | The user id the rows were read for. |