All URIs are relative to https://api.pipedrive.com/v1
Method | HTTP request | Description |
---|---|---|
getPermissionSet | GET /permissionSets/{id} | Get one permission set |
getPermissionSetAssignments | GET /permissionSets/{id}/assignments | List permission set assignments |
getPermissionSets | GET /permissionSets | Get all permission sets |
SinglePermissionSetsItem getPermissionSet(id)
Get one permission set
Returns data about a specific permission set.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.PermissionSetsApi(apiClient);
let id = "id_example"; // String | The ID of the permission set
apiInstance.getPermissionSet(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | The ID of the permission set |
- Content-Type: Not defined
- Accept: application/json
UserAssignmentsToPermissionSet getPermissionSetAssignments(id, opts)
List permission set assignments
Returns the list of assignments for a permission set.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.PermissionSetsApi(apiClient);
let id = "id_example"; // String | The ID of the permission set
// snake_case as well as camelCase is supported for naming opts properties
let opts = {
'start': 0, // Number | Pagination start
'limit': 56 // Number | Items shown per page
};
apiInstance.getPermissionSetAssignments(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | The ID of the permission set | |
start | Number | Pagination start | [optional] [default to 0] |
limit | Number | Items shown per page | [optional] |
UserAssignmentsToPermissionSet
- Content-Type: Not defined
- Accept: application/json
PermissionSets getPermissionSets(opts)
Get all permission sets
Returns data about all permission sets.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.PermissionSetsApi(apiClient);
// snake_case as well as camelCase is supported for naming opts properties
let opts = {
'app': "app_example" // String | The app to filter the permission sets by
};
apiInstance.getPermissionSets(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
app | String | The app to filter the permission sets by | [optional] |
- Content-Type: Not defined
- Accept: application/json