diff --git a/packages/nodes-base/nodes/Zulip/UserDescription.ts b/packages/nodes-base/nodes/Zulip/UserDescription.ts index 1890f71c9d..164432e5b0 100644 --- a/packages/nodes-base/nodes/Zulip/UserDescription.ts +++ b/packages/nodes-base/nodes/Zulip/UserDescription.ts @@ -226,14 +226,14 @@ export const userFields = [ name: 'isAdmin', type: 'boolean', default: false, - description: 'Whether the target user is an administrator.', + description: 'Whether the target user is an administrator', }, { displayName: 'Is Guest', name: 'isGuest', type: 'boolean', default: false, - description: 'Whether the target user is a guest.', + description: 'Whether the target user is a guest', }, { displayName: 'Profile Data', @@ -268,6 +268,35 @@ export const userFields = [ }, ], }, + { + displayName: 'Role', + name: 'role', + type: 'options', + options: [ + { + name: 'Organization Owner', + value: 100, + }, + { + name: 'Organization Administrator', + value: 200, + }, + { + name: 'Organization Moderator', + value: 300, + }, + { + name: 'Member', + value: 400, + }, + { + name: 'Guest', + value: 600, + }, + ], + default: '', + description: 'Role for the user', + }, ], }, diff --git a/packages/nodes-base/nodes/Zulip/UserInterface.ts b/packages/nodes-base/nodes/Zulip/UserInterface.ts index fd7dffcea9..12ff6d63b5 100644 --- a/packages/nodes-base/nodes/Zulip/UserInterface.ts +++ b/packages/nodes-base/nodes/Zulip/UserInterface.ts @@ -8,4 +8,5 @@ export interface IUser { email?: string; password?: string; short_name?: string; + role?: number; } diff --git a/packages/nodes-base/nodes/Zulip/Zulip.node.ts b/packages/nodes-base/nodes/Zulip/Zulip.node.ts index 9281e90dc9..1e9e9c9bd0 100644 --- a/packages/nodes-base/nodes/Zulip/Zulip.node.ts +++ b/packages/nodes-base/nodes/Zulip/Zulip.node.ts @@ -431,6 +431,9 @@ export class Zulip implements INodeType { if (additionalFields.isGuest) { body.is_guest = additionalFields.isGuest as boolean; } + if (additionalFields.role) { + body.role = additionalFields.role as number; + } if (additionalFields.profileData) { //@ts-ignore body.profile_data = additionalFields.profileData.properties as [{}];