/** * Zendesk Node - Version 1 * Discriminator: resource=user, operation=update */ interface Credentials { zendeskApi: CredentialReference; zendeskOAuth2Api: CredentialReference; } /** Manage users */ export type ZendeskV1UserUpdateParams = { resource: 'user'; operation: 'update'; authentication?: 'apiToken' | 'oAuth2' | Expression; /** * User ID */ id?: string | Expression | PlaceholderValue; /** * Update Fields * @default {} */ updateFields?: { /** An alias displayed to end users */ alias?: string | Expression | PlaceholderValue; /** A custom role if the user is an agent on the Enterprise plan * @default 0 */ custom_role_id?: number | Expression; /** Any details you want to store about the user, such as an address */ details?: string | Expression | PlaceholderValue; /** The user's primary email address */ email?: string | Expression | PlaceholderValue; /** A unique identifier from another system */ external_id?: string | Expression | PlaceholderValue; /** The user's locale. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ locale?: string | Expression; /** Whether the user has forum moderation capabilities * @default false */ moderator?: boolean | Expression; /** The user's name */ name?: string | Expression | PlaceholderValue; /** Any notes you want to store about the user */ notes?: string | Expression | PlaceholderValue; /** Whether the user can only create private comments * @default false */ only_private_comments?: boolean | Expression; /** 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/expressions/">expression</a>. */ organization_id?: string | Expression; /** The user's primary phone number */ phone?: string | Expression | PlaceholderValue; /** Whether or not the user can access the CSV report on the Search tab of the Reporting page in the Support admin interface * @default false */ report_csv?: boolean | Expression; /** Whether the agent has any restrictions; false for admins and unrestricted agents, true for other agents * @default false */ restricted_agent?: boolean | Expression; /** The user's role */ role?: 'end-user' | 'agent' | 'admin' | Expression; /** The user's signature. Only agents and admins can have signatures. */ signature?: string | Expression | PlaceholderValue; /** Whether the agent is suspended. Tickets from suspended users are also suspended, and these users cannot sign in to the end user portal. * @default false */ suspended?: boolean | Expression; /** The array of tags applied to this user. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ tags?: string[]; /** Specifies which tickets the user has access to */ ticket_restriction?: 'organization' | 'groups' | 'assigned' | 'requested' | Expression; /** The user's time zone */ time_zone?: string | Expression | PlaceholderValue; /** Values of custom fields in the user's profile * @default {} */ userFieldsUi?: { /** Field */ userFieldValues?: Array<{ /** Name of the field to sort on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ field?: string | Expression; /** Value of the field */ value?: string | Expression | PlaceholderValue; }>; }; /** Whether the user's primary identity is verified or not * @default false */ verified?: boolean | Expression; }; }; export type ZendeskV1UserUpdateNode = { type: 'n8n-nodes-base.zendesk'; version: 1; credentials?: Credentials; config: NodeConfig; };