ByteChef LogoByteChef

Google Workspace Admin

Google Workspace Admin is responsible for managing users, groups, devices, and security settings across the organization.

Categories: Productivity and Collaboration

Type: googleWorkspaceAdmin/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeDescriptionRequired
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue

Actions

Create User

Name: createUser

Creates a new user.

Properties

NameLabelTypeDescriptionRequired
givenNameFirst NameSTRINGThe user's first name.true
familyNameLast NameSTRINGThe user's last name.true
primaryEmailEmailSTRINGThe user's email address.true
passwordPasswordSTRINGThe password for the user account.true
changePasswordAtNextLoginChange Password At Next LoginBOOLEAN
Options true, false
Indicates if the user is forced to change their password at next login.false
addressesAddressSTRINGThe user's full address.false
phonesPhoneSTRINGThe user's phone number.false

Example JSON Structure

{
  "label" : "Create User",
  "name" : "createUser",
  "parameters" : {
    "givenName" : "",
    "familyName" : "",
    "primaryEmail" : "",
    "password" : "",
    "changePasswordAtNextLogin" : false,
    "addresses" : "",
    "phones" : ""
  },
  "type" : "googleWorkspaceAdmin/v1/createUser"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRINGThe unique ID for the user.
primaryEmailSTRINGThe user's primary email address.
passwordSTRINGThe password for the user account.
hashFunctionSTRINGThe hash format of the password property.
isAdminBOOLEAN
Options true, false
Indicates a user with super administrator privileges.
isDelegatedAdminBOOLEAN
Options true, false
Indicates if the user is a delegated administrator.
agreedToTermsBOOLEAN
Options true, false
Indicates if the user has completed an initial login and accepted the Terms of Service agreement.
suspendedBOOLEAN
Options true, false
Indicates if user is suspended.
changePasswordAtNextLoginBOOLEAN
Options true, false
Indicates if the user is forced to change their password at next login.
ipWhitelistedBOOLEAN
Options true, false
If true, the user's IP address is subject to a deprecated IP address allowlist configuration.
nameOBJECT
Properties {STRING(fullName), STRING(familyName), STRING(givenName), STRING(displayName)}
kindSTRINGThe type of the API resource.
etagSTRINGETag of the resource.
emailsARRAY
Items [{STRING(address), STRING(customType), BOOLEAN(primary), STRING(type)}]
externalIdsARRAY
Items [{STRING(customType), STRING(type), STRING(value)}]
relationsARRAY
Items [{STRING(customType), STRING(type), STRING(value)}]
aliasesARRAY
Items [STRING]
The list of the user's alias email addresses.
isMailboxSetupBOOLEAN
Options true, false
Indicates if the user's Google mailbox is created.
customerIdSTRINGThe customer ID to retrieve all account users.
addressesARRAY
Items [{STRING(country), STRING(countryCode), STRING(customType), STRING(extendedAddress), STRING(formatted), STRING(locality), STRING(poBox), STRING(postalCode), BOOLEAN(primary), STRING(region), BOOLEAN(sourceIsStructured), STRING(streetAddress), STRING(type)}]
organizationsARRAY
Items [{STRING(costCenter), STRING(customType), STRING(department), STRING(description), STRING(domain), INTEGER(fullTimeEquivalent), STRING(location), STRING(name), BOOLEAN(primary), STRING(symbol), STRING(title), STRING(type)}]
lastLoginTimeSTRINGThe last time the user logged into the user's account.
phonesARRAY
Items [{STRING(customType), BOOLEAN(primary), STRING(type), STRING(value)}]
suspensionReasonSTRINGHas the reason a user account is suspended either by the administrator or by Google at the time of suspension.
thumbnailPhotoUrlSTRINGThe URL of the user's profile photo.
languagesARRAY
Items [{STRING(customLanguage), STRING(languageCode), STRING(preference)}]
posixAccountsARRAY
Items [{STRING(accountId), STRING(gecos), NUMBER(gid), STRING(homeDirectory), STRING(operatingSystemType), BOOLEAN(primary), STRING(shell), STRING(systemId), NUMBER(uid), STRING(username)}]
creationTimeSTRINGThe time the user's account was created.
nonEditableAliasesARRAY
Items [STRING]
The list of the user's non-editable alias email addresses.
sshPublicKeysARRAY
Items [{NUMBER(expirationTimeUsec), STRING(fingerprint), STRING(key)}]
notesOBJECT
Properties {STRING(contentType), STRING(value)}
websitesARRAY
Items [{STRING(customType), BOOLEAN(primary), STRING(type), STRING(value)}]
locationsARRAY
Items [{STRING(area), STRING(buildingId), STRING(customType), STRING(deskCode), STRING(floorName), STRING(floorSection), STRING(type)}]
includeInGlobalAddressListBOOLEAN
Options true, false
Indicates if the user's profile is visible in the Google Workspace global address list when the contact sharing feature is enabled for the domain.
keywordsARRAY
Items [{STRING(customType), STRING(type), STRING(value)}]
deletionTimeSTRINGThe time the user's account was deleted.
genderOBJECT
Properties {STRING(addressMeAs), STRING(customGender), STRING(type)}
thumbnailPhotoEtagSTRINGETag of the user's photo
imsARRAY
Items [{STRING(customProtocol), STRING(customType), STRING(im), BOOLEAN(primary), STRING(protocol), STRING(type)}]
customSchemasOBJECT
Properties {}
Custom fields of the user.
isEnrolledIn2SvBOOLEAN
Options true, false
Is enrolled in 2-step verification.
isEnforcedIn2SvBOOLEAN
Options true, false
Is 2-step verification enforced
archivedBOOLEAN
Options true, false
Indicates if user is archived.
orgUnitPathSTRINGThe full path of the parent organization associated with the user.
recoveryEmailSTRINGRecovery email of the user.
recoveryPhoneSTRINGRecovery phone of the user.

Output Example

{
  "id" : "",
  "primaryEmail" : "",
  "password" : "",
  "hashFunction" : "",
  "isAdmin" : false,
  "isDelegatedAdmin" : false,
  "agreedToTerms" : false,
  "suspended" : false,
  "changePasswordAtNextLogin" : false,
  "ipWhitelisted" : false,
  "name" : {
    "fullName" : "",
    "familyName" : "",
    "givenName" : "",
    "displayName" : ""
  },
  "kind" : "",
  "etag" : "",
  "emails" : [ {
    "address" : "",
    "customType" : "",
    "primary" : false,
    "type" : ""
  } ],
  "externalIds" : [ {
    "customType" : "",
    "type" : "",
    "value" : ""
  } ],
  "relations" : [ {
    "customType" : "",
    "type" : "",
    "value" : ""
  } ],
  "aliases" : [ "" ],
  "isMailboxSetup" : false,
  "customerId" : "",
  "addresses" : [ {
    "country" : "",
    "countryCode" : "",
    "customType" : "",
    "extendedAddress" : "",
    "formatted" : "",
    "locality" : "",
    "poBox" : "",
    "postalCode" : "",
    "primary" : false,
    "region" : "",
    "sourceIsStructured" : false,
    "streetAddress" : "",
    "type" : ""
  } ],
  "organizations" : [ {
    "costCenter" : "",
    "customType" : "",
    "department" : "",
    "description" : "",
    "domain" : "",
    "fullTimeEquivalent" : 1,
    "location" : "",
    "name" : "",
    "primary" : false,
    "symbol" : "",
    "title" : "",
    "type" : ""
  } ],
  "lastLoginTime" : "",
  "phones" : [ {
    "customType" : "",
    "primary" : false,
    "type" : "",
    "value" : ""
  } ],
  "suspensionReason" : "",
  "thumbnailPhotoUrl" : "",
  "languages" : [ {
    "customLanguage" : "",
    "languageCode" : "",
    "preference" : ""
  } ],
  "posixAccounts" : [ {
    "accountId" : "",
    "gecos" : "",
    "gid" : 0.0,
    "homeDirectory" : "",
    "operatingSystemType" : "",
    "primary" : false,
    "shell" : "",
    "systemId" : "",
    "uid" : 0.0,
    "username" : ""
  } ],
  "creationTime" : "",
  "nonEditableAliases" : [ "" ],
  "sshPublicKeys" : [ {
    "expirationTimeUsec" : 0.0,
    "fingerprint" : "",
    "key" : ""
  } ],
  "notes" : {
    "contentType" : "",
    "value" : ""
  },
  "websites" : [ {
    "customType" : "",
    "primary" : false,
    "type" : "",
    "value" : ""
  } ],
  "locations" : [ {
    "area" : "",
    "buildingId" : "",
    "customType" : "",
    "deskCode" : "",
    "floorName" : "",
    "floorSection" : "",
    "type" : ""
  } ],
  "includeInGlobalAddressList" : false,
  "keywords" : [ {
    "customType" : "",
    "type" : "",
    "value" : ""
  } ],
  "deletionTime" : "",
  "gender" : {
    "addressMeAs" : "",
    "customGender" : "",
    "type" : ""
  },
  "thumbnailPhotoEtag" : "",
  "ims" : [ {
    "customProtocol" : "",
    "customType" : "",
    "im" : "",
    "primary" : false,
    "protocol" : "",
    "type" : ""
  } ],
  "customSchemas" : { },
  "isEnrolledIn2Sv" : false,
  "isEnforcedIn2Sv" : false,
  "archived" : false,
  "orgUnitPath" : "",
  "recoveryEmail" : "",
  "recoveryPhone" : ""
}

Assign Role To User

Name: assignRoleToUser

Assigns a role to a user.

Properties

NameLabelTypeDescriptionRequired
roleIdRole IDSTRINGThe ID of the role that is assigned.true
userIdUser IDSTRINGThe unique ID of the user this role is assigned to.true

Example JSON Structure

{
  "label" : "Assign Role To User",
  "name" : "assignRoleToUser",
  "parameters" : {
    "roleId" : "",
    "userId" : ""
  },
  "type" : "googleWorkspaceAdmin/v1/assignRoleToUser"
}

Output

Type: OBJECT

Properties

NameTypeDescription
roleAssignmentIdSTRINGID of this roleAssignment.
roleIdSTRINGThe ID of the role that is assigned.
kindSTRINGThe type of the API resource.
etagSTRINGETag of the resource.
assignedToSTRINGThe unique ID of the entity this role is assigned to.
assigneeTypeSTRINGThe type of the assignee.
scopeTypeSTRINGThe scope in which this role is assigned.
orgUnitIdSTRINGIf the role is restricted to an organization unit, this contains the ID for the organization unit the exercise of this role is restricted to.
conditionSTRINGThe condition associated with this role assignment.

Output Example

{
  "roleAssignmentId" : "",
  "roleId" : "",
  "kind" : "",
  "etag" : "",
  "assignedTo" : "",
  "assigneeType" : "",
  "scopeType" : "",
  "orgUnitId" : "",
  "condition" : ""
}

Assign License

Name: assignLicense

Assigns a product license to a user.

Properties

NameLabelTypeDescriptionRequired
userIdUser emailSTRINGThe user's current primary email address.true
productIdProduct IDSTRINGA product's unique identifier. Use this documentation to find product ID: https://developers.google.com/workspace/admin/licensing/v1/how-tos/products.true
skuIdSKU IDSTRINGA SKU's unique identifier. Use this documentation to find SKU ID: https://developers.google.com/workspace/admin/licensing/v1/how-tos/products.true

Example JSON Structure

{
  "label" : "Assign License",
  "name" : "assignLicense",
  "parameters" : {
    "userId" : "",
    "productId" : "",
    "skuId" : ""
  },
  "type" : "googleWorkspaceAdmin/v1/assignLicense"
}

Output

Type: OBJECT

Properties

NameTypeDescription
kindSTRINGIdentifies the resource as a LicenseAssignment.
etagsSTRINGETag of the resource.
productIdSTRINGA product's unique identifier.
userIdSTRINGThe user's current primary email address.
selfLinkSTRINGLink to this page.
skuIdSTRINGA product SKU's unique identifier.
skuNameSTRINGDisplay Name of the sku of the product.
productNameSTRINGDisplay Name of the product.

Output Example

{
  "kind" : "",
  "etags" : "",
  "productId" : "",
  "userId" : "",
  "selfLink" : "",
  "skuId" : "",
  "skuName" : "",
  "productName" : ""
}

Suspend User

Name: suspendUser

Suspends a user.

Properties

NameLabelTypeDescriptionRequired
userIdUser IDSTRINGThe unique ID of the user.true

Example JSON Structure

{
  "label" : "Suspend User",
  "name" : "suspendUser",
  "parameters" : {
    "userId" : ""
  },
  "type" : "googleWorkspaceAdmin/v1/suspendUser"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRINGThe unique ID for the user.
primaryEmailSTRINGThe user's primary email address.
passwordSTRINGThe password for the user account.
hashFunctionSTRINGThe hash format of the password property.
isAdminBOOLEAN
Options true, false
Indicates a user with super administrator privileges.
isDelegatedAdminBOOLEAN
Options true, false
Indicates if the user is a delegated administrator.
agreedToTermsBOOLEAN
Options true, false
Indicates if the user has completed an initial login and accepted the Terms of Service agreement.
suspendedBOOLEAN
Options true, false
Indicates if user is suspended.
changePasswordAtNextLoginBOOLEAN
Options true, false
Indicates if the user is forced to change their password at next login.
ipWhitelistedBOOLEAN
Options true, false
If true, the user's IP address is subject to a deprecated IP address allowlist configuration.
nameOBJECT
Properties {STRING(fullName), STRING(familyName), STRING(givenName), STRING(displayName)}
kindSTRINGThe type of the API resource.
etagSTRINGETag of the resource.
emailsARRAY
Items [{STRING(address), STRING(customType), BOOLEAN(primary), STRING(type)}]
externalIdsARRAY
Items [{STRING(customType), STRING(type), STRING(value)}]
relationsARRAY
Items [{STRING(customType), STRING(type), STRING(value)}]
aliasesARRAY
Items [STRING]
The list of the user's alias email addresses.
isMailboxSetupBOOLEAN
Options true, false
Indicates if the user's Google mailbox is created.
customerIdSTRINGThe customer ID to retrieve all account users.
addressesARRAY
Items [{STRING(country), STRING(countryCode), STRING(customType), STRING(extendedAddress), STRING(formatted), STRING(locality), STRING(poBox), STRING(postalCode), BOOLEAN(primary), STRING(region), BOOLEAN(sourceIsStructured), STRING(streetAddress), STRING(type)}]
organizationsARRAY
Items [{STRING(costCenter), STRING(customType), STRING(department), STRING(description), STRING(domain), INTEGER(fullTimeEquivalent), STRING(location), STRING(name), BOOLEAN(primary), STRING(symbol), STRING(title), STRING(type)}]
lastLoginTimeSTRINGThe last time the user logged into the user's account.
phonesARRAY
Items [{STRING(customType), BOOLEAN(primary), STRING(type), STRING(value)}]
suspensionReasonSTRINGHas the reason a user account is suspended either by the administrator or by Google at the time of suspension.
thumbnailPhotoUrlSTRINGThe URL of the user's profile photo.
languagesARRAY
Items [{STRING(customLanguage), STRING(languageCode), STRING(preference)}]
posixAccountsARRAY
Items [{STRING(accountId), STRING(gecos), NUMBER(gid), STRING(homeDirectory), STRING(operatingSystemType), BOOLEAN(primary), STRING(shell), STRING(systemId), NUMBER(uid), STRING(username)}]
creationTimeSTRINGThe time the user's account was created.
nonEditableAliasesARRAY
Items [STRING]
The list of the user's non-editable alias email addresses.
sshPublicKeysARRAY
Items [{NUMBER(expirationTimeUsec), STRING(fingerprint), STRING(key)}]
notesOBJECT
Properties {STRING(contentType), STRING(value)}
websitesARRAY
Items [{STRING(customType), BOOLEAN(primary), STRING(type), STRING(value)}]
locationsARRAY
Items [{STRING(area), STRING(buildingId), STRING(customType), STRING(deskCode), STRING(floorName), STRING(floorSection), STRING(type)}]
includeInGlobalAddressListBOOLEAN
Options true, false
Indicates if the user's profile is visible in the Google Workspace global address list when the contact sharing feature is enabled for the domain.
keywordsARRAY
Items [{STRING(customType), STRING(type), STRING(value)}]
deletionTimeSTRINGThe time the user's account was deleted.
genderOBJECT
Properties {STRING(addressMeAs), STRING(customGender), STRING(type)}
thumbnailPhotoEtagSTRINGETag of the user's photo
imsARRAY
Items [{STRING(customProtocol), STRING(customType), STRING(im), BOOLEAN(primary), STRING(protocol), STRING(type)}]
customSchemasOBJECT
Properties {}
Custom fields of the user.
isEnrolledIn2SvBOOLEAN
Options true, false
Is enrolled in 2-step verification.
isEnforcedIn2SvBOOLEAN
Options true, false
Is 2-step verification enforced
archivedBOOLEAN
Options true, false
Indicates if user is archived.
orgUnitPathSTRINGThe full path of the parent organization associated with the user.
recoveryEmailSTRINGRecovery email of the user.
recoveryPhoneSTRINGRecovery phone of the user.

Output Example

{
  "id" : "",
  "primaryEmail" : "",
  "password" : "",
  "hashFunction" : "",
  "isAdmin" : false,
  "isDelegatedAdmin" : false,
  "agreedToTerms" : false,
  "suspended" : false,
  "changePasswordAtNextLogin" : false,
  "ipWhitelisted" : false,
  "name" : {
    "fullName" : "",
    "familyName" : "",
    "givenName" : "",
    "displayName" : ""
  },
  "kind" : "",
  "etag" : "",
  "emails" : [ {
    "address" : "",
    "customType" : "",
    "primary" : false,
    "type" : ""
  } ],
  "externalIds" : [ {
    "customType" : "",
    "type" : "",
    "value" : ""
  } ],
  "relations" : [ {
    "customType" : "",
    "type" : "",
    "value" : ""
  } ],
  "aliases" : [ "" ],
  "isMailboxSetup" : false,
  "customerId" : "",
  "addresses" : [ {
    "country" : "",
    "countryCode" : "",
    "customType" : "",
    "extendedAddress" : "",
    "formatted" : "",
    "locality" : "",
    "poBox" : "",
    "postalCode" : "",
    "primary" : false,
    "region" : "",
    "sourceIsStructured" : false,
    "streetAddress" : "",
    "type" : ""
  } ],
  "organizations" : [ {
    "costCenter" : "",
    "customType" : "",
    "department" : "",
    "description" : "",
    "domain" : "",
    "fullTimeEquivalent" : 1,
    "location" : "",
    "name" : "",
    "primary" : false,
    "symbol" : "",
    "title" : "",
    "type" : ""
  } ],
  "lastLoginTime" : "",
  "phones" : [ {
    "customType" : "",
    "primary" : false,
    "type" : "",
    "value" : ""
  } ],
  "suspensionReason" : "",
  "thumbnailPhotoUrl" : "",
  "languages" : [ {
    "customLanguage" : "",
    "languageCode" : "",
    "preference" : ""
  } ],
  "posixAccounts" : [ {
    "accountId" : "",
    "gecos" : "",
    "gid" : 0.0,
    "homeDirectory" : "",
    "operatingSystemType" : "",
    "primary" : false,
    "shell" : "",
    "systemId" : "",
    "uid" : 0.0,
    "username" : ""
  } ],
  "creationTime" : "",
  "nonEditableAliases" : [ "" ],
  "sshPublicKeys" : [ {
    "expirationTimeUsec" : 0.0,
    "fingerprint" : "",
    "key" : ""
  } ],
  "notes" : {
    "contentType" : "",
    "value" : ""
  },
  "websites" : [ {
    "customType" : "",
    "primary" : false,
    "type" : "",
    "value" : ""
  } ],
  "locations" : [ {
    "area" : "",
    "buildingId" : "",
    "customType" : "",
    "deskCode" : "",
    "floorName" : "",
    "floorSection" : "",
    "type" : ""
  } ],
  "includeInGlobalAddressList" : false,
  "keywords" : [ {
    "customType" : "",
    "type" : "",
    "value" : ""
  } ],
  "deletionTime" : "",
  "gender" : {
    "addressMeAs" : "",
    "customGender" : "",
    "type" : ""
  },
  "thumbnailPhotoEtag" : "",
  "ims" : [ {
    "customProtocol" : "",
    "customType" : "",
    "im" : "",
    "primary" : false,
    "protocol" : "",
    "type" : ""
  } ],
  "customSchemas" : { },
  "isEnrolledIn2Sv" : false,
  "isEnforcedIn2Sv" : false,
  "archived" : false,
  "orgUnitPath" : "",
  "recoveryEmail" : "",
  "recoveryPhone" : ""
}

What to do if your action is not listed here?

If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.

To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.


Additional Instructions

Connection Setup

Create OAuth 2.0 Application

Creation of OAuth 2.0 application is documented here.

Enable Google Tasks API

  1. In the Google Cloud Console, select your project.
  2. Go to the APIs & Services.
  3. Click on ENABLE APIS AND SERVICES.
  4. Search for "admin sdk api" in the search bar.
  5. Click on Admin SDK API.
  6. Click Enable.
  7. Go back to API Library (previous page) and search for "enterprise license manager api".
  8. Click on Enterprise License Manager API.
  9. Click Enable.

Troubleshooting

Access Blocked: Verification Process Not Completed

Documentation for how to add a test user can be found here

How is this guide?

Last updated on

On this page