n8n-nodes-base
Version:
Base nodes of n8n
114 lines (110 loc) • 3.88 kB
text/typescript
/**
* Microsoft Entra ID Node - Version 1
* Discriminator: resource=group, operation=create
*/
interface Credentials {
microsoftEntraOAuth2Api: CredentialReference;
}
/** Create a group */
export type MicrosoftEntraV1GroupCreateParams = {
resource: 'group';
operation: 'create';
/**
* Group Type
*/
groupType?: 'Unified' | '' | Expression<string>;
/**
* The name to display in the address book for the group
*/
displayName?: string | Expression<string> | PlaceholderValue;
/**
* The mail alias for the group. Only enter the local-part without the domain.
*/
mailNickname?: string | Expression<string> | PlaceholderValue;
/**
* Whether the group is mail-enabled
* @displayOptions.show { groupType: ["Unified"] }
* @default false
*/
mailEnabled?: boolean | Expression<boolean>;
/**
* Membership Type
*/
membershipType?: '' | 'DynamicMembership' | Expression<string>;
/**
* Whether the group is a security group
* @displayOptions.show { groupType: ["Unified"] }
* @default true
*/
securityEnabled?: boolean | Expression<boolean>;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** Whether Microsoft Entra roles can be assigned to the group
* @displayOptions.hide { /membershipType: ["DynamicMembership"] }
* @default false
*/
isAssignableToRole?: boolean | Expression<boolean>;
/** Description for the group
*/
description?: string | Expression<string> | PlaceholderValue;
/** The <a href="https://learn.microsoft.com/en-us/entra/identity/users/groups-dynamic-membership">dynamic membership rules</a>
* @displayOptions.show { /membershipType: ["DynamicMembership"] }
*/
membershipRule?: string | Expression<string> | PlaceholderValue;
/** Indicates whether the dynamic membership processing is on or paused
* @displayOptions.show { /membershipType: ["DynamicMembership"] }
* @default On
*/
membershipRuleProcessingState?: 'On' | 'Paused' | Expression<string>;
/** A property set for the group that Office 365 services use to provision the corresponding data-at-rest resources (mailbox, OneDrive, groups sites, and so on)
* @displayOptions.show { /groupType: ["Unified"] }
*/
preferredDataLocation?: string | Expression<string> | PlaceholderValue;
/** The unique identifier for the group, can only be updated if null, and is immutable once set
*/
uniqueName?: string | Expression<string> | PlaceholderValue;
/** Specifies the visibility of the group
* @default Public
*/
visibility?: 'Private' | 'Public' | Expression<string>;
};
requestOptions?: {
/** Batching
* @default {"batch":{}}
*/
batching?: {
/** Batching
*/
batch?: {
/** Input will be split in batches to throttle requests. -1 for disabled. 0 will be treated as 1.
* @default 50
*/
batchSize?: number | Expression<number>;
/** Time (in milliseconds) between each batch of requests. 0 for disabled.
* @default 1000
*/
batchInterval?: number | Expression<number>;
};
};
/** Whether to accept the response even if SSL certificate validation is not possible
* @default false
*/
allowUnauthorizedCerts?: boolean;
/** HTTP proxy to use. If authentication is required it can be defined as follow: http://username:password@myproxy:3128
*/
proxy?: string | Expression<string> | PlaceholderValue;
/** Time in ms to wait for the server to send response headers (and start the response body) before aborting the request
* @default 10000
*/
timeout?: number | Expression<number>;
};
};
export type MicrosoftEntraV1GroupCreateNode = {
type: 'n8n-nodes-base.microsoftEntra';
version: 1;
credentials?: Credentials;
config: NodeConfig<MicrosoftEntraV1GroupCreateParams>;
};