/** * Google Workspace Admin Node - Version 1 * Discriminator: resource=user, operation=get */ interface Credentials { gSuiteAdminOAuth2Api: CredentialReference; } /** Get a ChromeOS device */ export type GSuiteAdminV1UserGetParams = { resource: 'user'; operation: 'get'; /** * Select the user to perform the operation on * @default {"mode":"list","value":""} */ userId?: { __rl: true; mode: 'list' | 'userEmail' | 'userId'; value: string; cachedResultName?: string }; /** * Output * @default simplified */ output?: 'simplified' | 'raw' | 'select' | Expression; /** * Fields to include in the response when "Select Included Fields" is chosen * @displayOptions.show { output: ["select"] } * @default [] */ fields?: Array<'creationTime' | 'isAdmin' | 'kind' | 'lastLoginTime' | 'name' | 'primaryEmail' | 'suspended'>; /** * What subset of fields to fetch for this user * @default basic */ projection?: 'basic' | 'custom' | 'full' | Expression; /** * A comma-separated list of schema names. All fields from these schemas are fetched. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @displayOptions.show { /projection: ["custom"] } * @default [] */ customFieldMask?: string[]; }; export type GSuiteAdminV1UserGetOutput = { agreedToTerms?: boolean; archived?: boolean; changePasswordAtNextLogin?: boolean; creationTime?: string; customerId?: string; emails?: Array<{ address?: string; primary?: boolean; }>; etag?: string; id?: string; includeInGlobalAddressList?: boolean; ipWhitelisted?: boolean; isAdmin?: boolean; isDelegatedAdmin?: boolean; isEnforcedIn2Sv?: boolean; isEnrolledIn2Sv?: boolean; isMailboxSetup?: boolean; kind?: string; languages?: Array<{ languageCode?: string; preference?: string; }>; lastLoginTime?: string; name?: { familyName?: string; fullName?: string; givenName?: string; }; orgUnitPath?: string; primaryEmail?: string; suspended?: boolean; }; export type GSuiteAdminV1UserGetNode = { type: 'n8n-nodes-base.gSuiteAdmin'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };