2022-08-17 08:50:24 -07:00
import { INodeProperties } from 'n8n-workflow' ;
2020-08-26 23:53:23 -07:00
2021-12-03 00:44:16 -08:00
export const userOperations : INodeProperties [ ] = [
2020-08-26 23:53:23 -07:00
{
displayName : 'Operation' ,
name : 'operation' ,
type : 'options' ,
2022-05-20 14:47:24 -07:00
noDataExpression : true ,
2020-08-26 23:53:23 -07:00
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
2020-08-26 23:53:23 -07:00
} ,
} ,
options : [
{
name : 'Create' ,
value : 'create' ,
description : 'Create a user' ,
2022-07-10 13:50:51 -07:00
action : 'Create a user' ,
2020-08-26 23:53:23 -07:00
} ,
{
name : 'Delete' ,
value : 'delete' ,
description : 'Delete a user' ,
2022-07-10 13:50:51 -07:00
action : 'Delete a user' ,
2020-08-26 23:53:23 -07:00
} ,
{
name : 'Get' ,
value : 'get' ,
description : 'Get a user' ,
2022-07-10 13:50:51 -07:00
action : 'Get a user' ,
2020-08-26 23:53:23 -07:00
} ,
{
2022-09-07 07:51:14 -07:00
name : 'Get Many' ,
2020-08-26 23:53:23 -07:00
value : 'getAll' ,
2022-09-13 03:36:36 -07:00
description : 'Get many users' ,
2022-09-08 08:10:13 -07:00
action : 'Get many users' ,
2020-08-26 23:53:23 -07:00
} ,
2021-09-05 06:13:25 -07:00
{
name : 'Get Organizations' ,
value : 'getOrganizations' ,
2022-08-17 08:50:24 -07:00
description : "Get a user's organizations" ,
action : "Get a user's organizations" ,
2021-09-05 06:13:25 -07:00
} ,
{
name : 'Get Related Data' ,
value : 'getRelatedData' ,
description : 'Get data related to the user' ,
2022-07-10 13:50:51 -07:00
action : 'Get data related to a user' ,
2021-09-05 06:13:25 -07:00
} ,
2020-08-31 03:26:11 -07:00
{
name : 'Search' ,
value : 'search' ,
description : 'Search users' ,
2022-07-10 13:50:51 -07:00
action : 'Search a user' ,
2020-08-31 03:26:11 -07:00
} ,
2020-08-26 23:53:23 -07:00
{
name : 'Update' ,
value : 'update' ,
description : 'Update a user' ,
2022-07-10 13:50:51 -07:00
action : 'Update a user' ,
2020-08-26 23:53:23 -07:00
} ,
] ,
default : 'create' ,
} ,
2021-12-03 00:44:16 -08:00
] ;
2020-08-26 23:53:23 -07:00
2021-12-03 00:44:16 -08:00
export const userFields : INodeProperties [ ] = [
2022-08-17 08:50:24 -07:00
/* -------------------------------------------------------------------------- */
/* user:create */
/* -------------------------------------------------------------------------- */
2020-08-26 23:53:23 -07:00
{
displayName : 'Name' ,
name : 'name' ,
type : 'string' ,
default : '' ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'create' ] ,
2020-08-26 23:53:23 -07:00
} ,
} ,
required : true ,
2022-08-17 08:50:24 -07:00
description : "The user's name" ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Additional Fields' ,
name : 'additionalFields' ,
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'create' ] ,
2020-08-26 23:53:23 -07:00
} ,
} ,
options : [
{
displayName : 'Alias' ,
2021-09-05 06:13:25 -07:00
name : 'alias' ,
2020-08-26 23:53:23 -07:00
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'An alias displayed to end users' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Custom Role ID' ,
name : 'custom_role_id' ,
type : 'number' ,
default : 0 ,
2022-05-06 14:01:25 -07:00
description : 'A custom role if the user is an agent on the Enterprise plan' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Details' ,
name : 'details' ,
type : 'string' ,
default : '' ,
description : 'Any details you want to store about the user, such as an address' ,
} ,
{
displayName : 'Email' ,
name : 'email' ,
type : 'string' ,
2022-06-20 07:54:01 -07:00
placeholder : 'name@email.com' ,
2020-08-26 23:53:23 -07:00
default : '' ,
2022-08-17 08:50:24 -07:00
description : "The user's primary email address" ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'External ID' ,
2021-11-05 07:49:31 -07:00
name : 'external_id' ,
2020-08-26 23:53:23 -07:00
type : 'string' ,
default : '' ,
description : 'A unique identifier from another system' ,
} ,
{
2022-06-03 10:23:49 -07:00
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options
displayName : 'Locale' ,
2020-08-26 23:53:23 -07:00
name : 'locale' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getLocales' ,
} ,
default : '' ,
2022-08-17 08:50:24 -07:00
description :
'The user\'s locale. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Moderator' ,
name : 'moderator' ,
type : 'boolean' ,
default : false ,
2022-06-20 07:54:01 -07:00
description : 'Whether the user has forum moderation capabilities' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Notes' ,
name : 'notes' ,
type : 'string' ,
default : '' ,
description : 'Any notes you want to store about the user' ,
} ,
{
displayName : 'Only Private Comments' ,
name : 'only_private_comments' ,
type : 'boolean' ,
default : false ,
2022-06-20 07:54:01 -07:00
description : 'Whether the user can only create private comments' ,
2020-08-26 23:53:23 -07:00
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'Organization Name or ID' ,
2021-09-05 06:13:25 -07:00
name : 'organization_id' ,
typeOptions : {
loadOptionsMethod : 'getOrganizations' ,
} ,
type : 'options' ,
default : '' ,
2022-08-17 08:50:24 -07:00
description :
'The ID of the user\'s organization. If the user has more than one organization memberships, the ID of the user\'s default organization. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Phone' ,
name : 'phone' ,
type : 'string' ,
default : '' ,
2022-08-17 08:50:24 -07:00
description : "The user's primary phone number" ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Report CSV' ,
name : 'report_csv' ,
type : 'boolean' ,
default : false ,
2022-08-17 08:50:24 -07:00
description :
'Whether or not the user can access the CSV report on the Search tab of the Reporting page in the Support admin interface' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Restricted Agent' ,
name : 'restricted_agent' ,
type : 'boolean' ,
default : false ,
2022-08-17 08:50:24 -07:00
description :
'Whether the agent has any restrictions; false for admins and unrestricted agents, true for other agents' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Role' ,
name : 'role' ,
type : 'options' ,
options : [
{
name : 'End User' ,
value : 'end-user' ,
} ,
{
name : 'Agent' ,
value : 'agent' ,
} ,
{
name : 'Admin' ,
value : 'admin' ,
} ,
] ,
default : '' ,
2022-08-17 08:50:24 -07:00
description : "The user's role" ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Signature' ,
name : 'signature' ,
type : 'string' ,
default : '' ,
2022-08-17 08:50:24 -07:00
description : "The user's signature. Only agents and admins can have signatures." ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Suspended' ,
name : 'suspended' ,
type : 'boolean' ,
default : false ,
2022-08-17 08:50:24 -07:00
description :
'Whether the agent is suspended. Tickets from suspended users are also suspended, and these users cannot sign in to the end user portal.' ,
2020-08-26 23:53:23 -07:00
} ,
{
2022-06-20 07:54:01 -07:00
displayName : 'Tag Names or IDs' ,
2020-08-26 23:53:23 -07:00
name : 'tags' ,
type : 'multiOptions' ,
typeOptions : {
loadOptionsMethod : 'getTags' ,
} ,
default : [ ] ,
2022-08-17 08:50:24 -07:00
description :
'The array of tags applied to this user. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Ticket Restriction' ,
name : 'ticket_restriction' ,
type : 'options' ,
options : [
{
name : 'Organization' ,
value : 'organization' ,
} ,
{
name : 'Groups' ,
value : 'groups' ,
} ,
{
name : 'Assigned' ,
value : 'assigned' ,
} ,
{
name : 'Requested' ,
value : 'requested' ,
} ,
] ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Specifies which tickets the user has access to' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Timezone' ,
name : 'time_zone' ,
type : 'string' ,
default : '' ,
2022-08-17 08:50:24 -07:00
description : "The user's time zone" ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'User Fields' ,
name : 'userFieldsUi' ,
placeholder : 'Add User Field' ,
2022-08-17 08:50:24 -07:00
description : "Values of custom fields in the user's profile" ,
2020-08-26 23:53:23 -07:00
type : 'fixedCollection' ,
typeOptions : {
multipleValues : true ,
} ,
default : { } ,
options : [
{
name : 'userFieldValues' ,
displayName : 'Field' ,
values : [
{
2022-06-03 10:23:49 -07:00
displayName : 'Field Name or ID' ,
2020-08-26 23:53:23 -07:00
name : 'field' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getUserFields' ,
} ,
default : '' ,
2022-08-17 08:50:24 -07:00
description :
'Name of the field to sort on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Value' ,
name : 'value' ,
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Value of the field' ,
2020-08-26 23:53:23 -07:00
} ,
] ,
} ,
] ,
} ,
{
displayName : 'Verified' ,
name : 'verified' ,
type : 'boolean' ,
default : false ,
2022-08-17 08:50:24 -07:00
description : "Whether the user's primary identity is verified or not" ,
2020-08-26 23:53:23 -07:00
} ,
] ,
} ,
2022-08-17 08:50:24 -07:00
/* -------------------------------------------------------------------------- */
/* user:update */
/* -------------------------------------------------------------------------- */
2020-08-26 23:53:23 -07:00
{
displayName : 'User ID' ,
name : 'id' ,
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'update' ] ,
2020-08-26 23:53:23 -07:00
} ,
} ,
} ,
{
displayName : 'Update Fields' ,
name : 'updateFields' ,
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'update' ] ,
2020-08-26 23:53:23 -07:00
} ,
} ,
options : [
{
displayName : 'Alias' ,
2021-09-05 06:13:25 -07:00
name : 'alias' ,
2020-08-26 23:53:23 -07:00
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'An alias displayed to end users' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Custom Role ID' ,
name : 'custom_role_id' ,
type : 'number' ,
default : 0 ,
2022-05-06 14:01:25 -07:00
description : 'A custom role if the user is an agent on the Enterprise plan' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Details' ,
name : 'details' ,
type : 'string' ,
default : '' ,
description : 'Any details you want to store about the user, such as an address' ,
} ,
{
displayName : 'Email' ,
name : 'email' ,
type : 'string' ,
2022-06-20 07:54:01 -07:00
placeholder : 'name@email.com' ,
2020-08-26 23:53:23 -07:00
default : '' ,
2022-08-17 08:50:24 -07:00
description : "The user's primary email address" ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'External ID' ,
2021-11-05 07:49:31 -07:00
name : 'external_id' ,
2020-08-26 23:53:23 -07:00
type : 'string' ,
default : '' ,
description : 'A unique identifier from another system' ,
} ,
{
2022-06-03 10:23:49 -07:00
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options
displayName : 'Locale' ,
2020-08-26 23:53:23 -07:00
name : 'locale' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getLocales' ,
} ,
default : '' ,
2022-08-17 08:50:24 -07:00
description :
'The user\'s locale. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Moderator' ,
name : 'moderator' ,
type : 'boolean' ,
default : false ,
2022-06-20 07:54:01 -07:00
description : 'Whether the user has forum moderation capabilities' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Name' ,
name : 'name' ,
type : 'string' ,
default : '' ,
2022-08-17 08:50:24 -07:00
description : "The user's name" ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Notes' ,
name : 'notes' ,
type : 'string' ,
default : '' ,
description : 'Any notes you want to store about the user' ,
} ,
{
displayName : 'Only Private Comments' ,
name : 'only_private_comments' ,
type : 'boolean' ,
default : false ,
2022-06-20 07:54:01 -07:00
description : 'Whether the user can only create private comments' ,
2020-08-26 23:53:23 -07:00
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'Organization Name or ID' ,
2021-09-05 06:13:25 -07:00
name : 'organization_id' ,
typeOptions : {
loadOptionsMethod : 'getOrganizations' ,
} ,
type : 'options' ,
default : '' ,
2022-08-17 08:50:24 -07:00
description :
'The ID of the user\'s organization. If the user has more than one organization memberships, the ID of the user\'s default organization. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Phone' ,
name : 'phone' ,
type : 'string' ,
default : '' ,
2022-08-17 08:50:24 -07:00
description : "The user's primary phone number" ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Report CSV' ,
name : 'report_csv' ,
type : 'boolean' ,
default : false ,
2022-08-17 08:50:24 -07:00
description :
'Whether or not the user can access the CSV report on the Search tab of the Reporting page in the Support admin interface' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Restricted Agent' ,
name : 'restricted_agent' ,
type : 'boolean' ,
default : false ,
2022-08-17 08:50:24 -07:00
description :
'Whether the agent has any restrictions; false for admins and unrestricted agents, true for other agents' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Role' ,
name : 'role' ,
type : 'options' ,
options : [
{
name : 'End User' ,
value : 'end-user' ,
} ,
{
name : 'Agent' ,
value : 'agent' ,
} ,
{
name : 'Admin' ,
value : 'admin' ,
} ,
] ,
default : '' ,
2022-08-17 08:50:24 -07:00
description : "The user's role" ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Signature' ,
name : 'signature' ,
type : 'string' ,
default : '' ,
2022-08-17 08:50:24 -07:00
description : "The user's signature. Only agents and admins can have signatures." ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Suspended' ,
name : 'suspended' ,
type : 'boolean' ,
default : false ,
2022-08-17 08:50:24 -07:00
description :
'Whether the agent is suspended. Tickets from suspended users are also suspended, and these users cannot sign in to the end user portal.' ,
2020-08-26 23:53:23 -07:00
} ,
{
2022-06-20 07:54:01 -07:00
displayName : 'Tag Names or IDs' ,
2020-08-26 23:53:23 -07:00
name : 'tags' ,
type : 'multiOptions' ,
typeOptions : {
loadOptionsMethod : 'getTags' ,
} ,
default : [ ] ,
2022-08-17 08:50:24 -07:00
description :
'The array of tags applied to this user. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Ticket Restriction' ,
name : 'ticket_restriction' ,
type : 'options' ,
options : [
{
name : 'Organization' ,
value : 'organization' ,
} ,
{
name : 'Groups' ,
value : 'groups' ,
} ,
{
name : 'Assigned' ,
value : 'assigned' ,
} ,
{
name : 'Requested' ,
value : 'requested' ,
} ,
] ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Specifies which tickets the user has access to' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Timezone' ,
name : 'time_zone' ,
type : 'string' ,
default : '' ,
2022-08-17 08:50:24 -07:00
description : "The user's time zone" ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'User Fields' ,
name : 'userFieldsUi' ,
placeholder : 'Add User Field' ,
2022-08-17 08:50:24 -07:00
description : "Values of custom fields in the user's profile" ,
2020-08-26 23:53:23 -07:00
type : 'fixedCollection' ,
typeOptions : {
multipleValues : true ,
} ,
default : { } ,
options : [
{
name : 'userFieldValues' ,
displayName : 'Field' ,
values : [
{
2022-06-03 10:23:49 -07:00
displayName : 'Field Name or ID' ,
2020-08-26 23:53:23 -07:00
name : 'field' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getUserFields' ,
} ,
default : '' ,
2022-08-17 08:50:24 -07:00
description :
'Name of the field to sort on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Value' ,
name : 'value' ,
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Value of the field' ,
2020-08-26 23:53:23 -07:00
} ,
] ,
} ,
] ,
} ,
{
displayName : 'Verified' ,
name : 'verified' ,
type : 'boolean' ,
default : false ,
2022-08-17 08:50:24 -07:00
description : "Whether the user's primary identity is verified or not" ,
2020-08-26 23:53:23 -07:00
} ,
] ,
} ,
2022-08-17 08:50:24 -07:00
/* -------------------------------------------------------------------------- */
/* user:get */
/* -------------------------------------------------------------------------- */
2020-08-26 23:53:23 -07:00
{
displayName : 'User ID' ,
name : 'id' ,
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'get' ] ,
2020-08-26 23:53:23 -07:00
} ,
} ,
} ,
2022-08-17 08:50:24 -07:00
/* -------------------------------------------------------------------------- */
/* user:getAll */
/* -------------------------------------------------------------------------- */
2020-08-26 23:53:23 -07:00
{
displayName : 'Return All' ,
name : 'returnAll' ,
type : 'boolean' ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'getAll' ] ,
2020-08-26 23:53:23 -07:00
} ,
} ,
default : false ,
2022-05-06 14:01:25 -07:00
description : 'Whether to return all results or only up to a given limit' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Limit' ,
name : 'limit' ,
type : 'number' ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'getAll' ] ,
returnAll : [ false ] ,
2020-08-26 23:53:23 -07:00
} ,
} ,
typeOptions : {
minValue : 1 ,
maxValue : 100 ,
} ,
default : 100 ,
2022-05-06 14:01:25 -07:00
description : 'Max number of results to return' ,
2020-08-26 23:53:23 -07:00
} ,
{
displayName : 'Filters' ,
name : 'filters' ,
type : 'collection' ,
placeholder : 'Add Filter' ,
default : { } ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'getAll' ] ,
2020-08-26 23:53:23 -07:00
} ,
} ,
options : [
{
displayName : 'Roles' ,
name : 'role' ,
type : 'multiOptions' ,
options : [
{
name : 'End User' ,
value : 'end-user' ,
} ,
{
name : 'Agent' ,
value : 'agent' ,
} ,
{
name : 'Admin' ,
value : 'admin' ,
} ,
] ,
default : [ ] ,
} ,
] ,
} ,
2022-08-17 08:50:24 -07:00
/* -------------------------------------------------------------------------- */
/* user:search */
/* -------------------------------------------------------------------------- */
2020-08-31 03:26:11 -07:00
{
displayName : 'Return All' ,
name : 'returnAll' ,
type : 'boolean' ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'search' ] ,
2020-08-31 03:26:11 -07:00
} ,
} ,
default : false ,
2022-05-06 14:01:25 -07:00
description : 'Whether to return all results or only up to a given limit' ,
2020-08-31 03:26:11 -07:00
} ,
{
displayName : 'Limit' ,
name : 'limit' ,
type : 'number' ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'search' ] ,
returnAll : [ false ] ,
2020-08-31 03:26:11 -07:00
} ,
} ,
typeOptions : {
minValue : 1 ,
maxValue : 100 ,
} ,
default : 100 ,
2022-05-06 14:01:25 -07:00
description : 'Max number of results to return' ,
2020-08-31 03:26:11 -07:00
} ,
{
displayName : 'Filters' ,
name : 'filters' ,
type : 'collection' ,
placeholder : 'Add Filter' ,
default : { } ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'search' ] ,
2020-08-31 03:26:11 -07:00
} ,
} ,
options : [
{
displayName : 'Query' ,
name : 'query' ,
type : 'string' ,
default : '' ,
} ,
{
displayName : 'External ID' ,
name : 'external_id' ,
type : 'string' ,
default : '' ,
} ,
] ,
} ,
2022-08-17 08:50:24 -07:00
/* -------------------------------------------------------------------------- */
/* user:delete */
/* -------------------------------------------------------------------------- */
2020-08-26 23:53:23 -07:00
{
displayName : 'User ID' ,
name : 'id' ,
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'delete' ] ,
2020-08-26 23:53:23 -07:00
} ,
} ,
} ,
2022-08-17 08:50:24 -07:00
/* -------------------------------------------------------------------------- */
/* user:getRelatedData */
/* -------------------------------------------------------------------------- */
2021-09-05 06:13:25 -07:00
{
displayName : 'User ID' ,
name : 'id' ,
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'getRelatedData' ] ,
2021-09-05 06:13:25 -07:00
} ,
} ,
} ,
2022-08-17 08:50:24 -07:00
/* -------------------------------------------------------------------------- */
/* user:getOrganizations */
/* -------------------------------------------------------------------------- */
2021-09-05 06:13:25 -07:00
{
displayName : 'User ID' ,
name : 'id' ,
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'user' ] ,
operation : [ 'getOrganizations' ] ,
2021-09-05 06:13:25 -07:00
} ,
} ,
} ,
2021-12-03 00:44:16 -08:00
] ;