JDBC Driver for Google Directory

Build 24.0.9062

Users

Query user information.

Table Specific Information

Select

To get a list of all the users, CustomerId is required. You can either set it in the connection string or in the WHERE clause condition. If not specified, the CustomerId of the current account will be used.

For example, the following query is processed server side by the Google Directory APIs:

SELECT * FROM Users

Insert

To insert a user, the following columns are required: PrimaryEmail, FirstName, Surname, and Password.

INSERT INTO Users (PrimaryEmail, FirstName, Surname, Password, Suspended) VALUES ('[email protected]', 'John', 'Doe', '12345', true)

Update

To update a user, the Id column is required.

UPDATE Users SET PrimaryEmail = '[email protected]', FirstName = 'John', Surname = 'Doe', Suspended = true WHERE Id = 1231

Delete

To delete users, the Id column is required.

DELETE FROM Users WHERE Id = '12345'

Columns

Name Type ReadOnly Description
Id [KEY] String True

The unique identifier for the user.

CustomerId String True

The customer Id of the user.

PrimaryEmail String False

The primary email of the user.

FirstName String False

The first name of the user.

Surname String False

The surname of the user.

Aliases String True

The aliases of the user.

IsAdmin Boolean True

Indicates if the user is an admin.

IsDelegatedAdmin Boolean True

Indicates if the user is a delegated admin.

LastLoginDate Datetime True

Last time the user logged on.

CreationDate Datetime True

Creation date of the user.

DeletionDate Datetime True

Deletion date of the user.

AgreedToTerms Boolean True

Indicates if the user agreed to the terms or not.

Suspended Boolean False

Indicates if the user got supsended.

SuspensionReason String True

The reason the user got supsended.

OrgUnitPath String False

The full path of the parent organization associated with the user. If the parent organization is the top-level, it is represented as a forward slash (/).

IsMailBoxSetup Boolean True

Indicates if the user's Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license.

IsEnrolledIn2Sv Boolean True

Indicates if the user is enrolled in 2-step verification.

IsEnforcedIn2Sv Boolean True

Indicates if the user is enforced in 2-step verification.

IncludeInGlobalAddressList Boolean True

Indicates if the user's profile is visible in the G Suite global address list when the contact sharing feature is enabled for the domain.

ThumbnailPhotoUrl String True

Photo Url of the user

Pseudo-Columns

SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。

Name Type Description
Password String

The password of the user.

Domain String

Domain name

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9062