GSuiteAdmin

G Suite or Google Workspace Admin is an integration to perform an action on IT infrastructure, create users, update settings, and more administrative tasks.

IT Services · G Suite Admin

Details

IDGSuiteAdmin
ProviderGoogle
CategoryIT Services
From Version5.0.0
Docker Imagedemisto/googleapi-python3:1.0.0.10182333
Supported ModulesAgentix Cloud Runtime Security XSIAM EDR Cortex Cloud

README

G Suite or Google Workspace Admin is an integration to perform an action on IT infrastructure, create users, update settings, and more administrative tasks.
This integration was integrated and tested majorly with G Suite Basic edition.

Configure Service Account for G Suite Admin

  1. Go to https://console.developers.google.com.

  2. Select or create a project:

    Setup Account

  3. Enable the Admin SDK API:

    1. Under the main menu, select APIs & Services -> ‘Libary’:
      Setup Account

    2. Enable Admin SDK:
      Setup Account

    3. Select the project and click ‘OPEN’:
      Setup Account

  4. Create a service account with correct restricted permissions:

    1. Under the main menu, select IAM & Admin -> Service Accounts:
      Setup Account

    2. In the top bar, select CREATE SERVICE ACCOUNT:
      Setup Account

    3. Under the main menu, select IAM & Admin -> Service Accounts and open the account you just created.

    4. Generate new credentials:

      1. On the Service account details page, under Keys, click ADD KEY and select Create new key:
        Setup Account

      2. Under Key type, select JSON, and click CREATE. Save the credentials in a secure location. You will need the generated credentials.json file when you configure the instance in Cortex XSOAR:
        Setup Account

Add Scopes in G Suite Admin

  1. Go to https://admin.google.com

  2. Click Menu and select Security -> API Controls:
    Setup Account

  3. Under Domain wide delegation tab, Click MANAGE DOMAIN WIDE DELEGATION:
    Setup Account

  4. Click on Add new and the window will prompt, enter Client ID from your credentials.json and required scopes from integration tips.
    Setup Account

  5. Click AUTHORIZE.

Configure G Suite Admin on Cortex XSOAR

  1. Navigate to Settings > Integrations > Servers & Services.
  2. Search for G Suite Admin.
  3. Click Add instance to create and configure a new integration instance.
Parameter Description Required
user_service_account_json User’s Service Account JSON True
admin_email An admin email is required for the Test validation to run, if not configured, then each command can receive an admin_email argument as optional False
insecure Trust any certificate (not secure) False
proxy Use system proxy settings False
  1. Click Test to validate credentails.json, and connection.

Commands

You can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.

gsuite-mobile-update


Takes an action that affects a mobile device. For example, remotely wiping a device.

Required Permissions

https://www.googleapis.com/auth/admin.directory.device.mobile.action

Base Command

gsuite-mobile-update

Input

Argument Name Description Required
customer_id The unique ID of the customer’s G Suite account. Optional
resource_id The unique ID used to identify the mobile device. Required
action The action to be performed on the device.

Available Options:
admin_account_wipe - Remotely wipes only G Suite data from the device.

admin_remote_wipe - Remotely wipes all data on the device.

approve - Approves the device.

block - Blocks access to G Suite data on the device.

cancel_remote_wipe_then_activate - Cancels a remote wipe of the device and then reactivates it.

cancel_remote_wipe_then_block - Cancels a remote wipe of the device and then blocks it.
Required
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional

Context Output

There is no context output for this command.

Command Example

!gsuite-mobile-update resource_id=RESOURCE_ID  action=admin_account_wipe customer_id=my_customer admin_email=admin@domain.io

Human Readable Output

Mobile device with resource id - RESOURCE_ID updated.

gsuite-mobile-delete


Removes a mobile device. Note that this does not break the device’s sync, it simply removes it from the list of devices connected to the domain. If the device still has a valid login/authentication, it will be added back on it’s next successful sync.

Required Permissions

https://www.googleapis.com/auth/admin.directory.user.readonly
https://www.googleapis.com/auth/admin.directory.user
https://www.googleapis.com/auth/cloud-platform

Base Command

gsuite-mobile-delete

Input

Argument Name Description Required
customer_id The unique ID of the customer’s G Suite account. Optional
resource_id The unique ID used to identify the mobile device. Required
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional

Context Output

There is no context output for this command.

Command Example

!gsuite-mobile-delete customer_id=my_customer resource_id=AFFIQUAU-Adjghah-rezwed admin_email=adminemail@domain.com

Human Readable Output

Mobile device with resource id - AFFIQUAU-Adjghah-rezwed deleted.

gsuite-user-alias-add


Adds an alias.

Required Permissions

https://www.googleapis.com/auth/admin.directory.user.alias
https://www.googleapis.com/auth/admin.directory.user

Base Command

gsuite-user-alias-add

Input

Argument Name Description Required
user_key Identifies the user in the API request. The value can be the user’s primary email address, alias email address, or unique user ID. Required
alias The alias email address. Required
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional

Context Output

Path Type Description
GSuite.UserAlias.kind String The type of the API resource.
GSuite.UserAlias.id String The unique ID for the user.
GSuite.UserAlias.etag String ETag of the resource.
GSuite.UserAlias.alias String The alias email address.

Command Example

!gsuite-user-alias-add alias=alias_321@domain.com user_key=demoaccount@domain.com admin_email=user1@domain.com

Context Example

{
    "GSuite": {
        "UserAlias": {
            "alias": "alias_321@domain.com",
            "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/jJ5Cz1VAIrUEoGZlaiop-HTSKJ4\"",
            "id": "108028652821197762751",
            "kind": "admin#directory#alias"
        }
    }
}

Human Readable Output

Added alias “alias_321@domain.com” to user key “demoaccount@domain.com”.

gsuite-user-create


Creates a user.

Required Permissions

https://www.googleapis.com/auth/admin.directory.user

Base Command

gsuite-user-create

Input

Argument Name Description Required
first_name The user’s first name. Required
last_name The user’s last name. Required
password Stores the password for the user account. A password can contain any combination of ASCII characters. A minimum of 8 characters is required. The maximum length is 100 characters. The password will be sent in MD5 hash format. Required
primary_email The user’s primary email address. The primary_email must be unique and cannot be an alias of another user. Required
country User’s Country. Optional
address_type The address type. Optional
postal_code The ZIP or postal code, if applicable. Optional
is_address_primary Set to true, If this is the user’s primary address. Optional
extended_address For extended addresses, such as an address that includes a sub-region. Optional
region The abbreviated province or state. Optional
street_address The street address, such as 1600 Amphitheatre Parkway. Whitespace within the string is ignored; however, newlines are significant. Optional
secondary_email_address The user’s secondary email address. Optional
secondary_email_type The type of the secondary email account. Optional
gender User’s gender. Optional
is_ip_white_listed If true, the user’s IP address is added to allow list. Optional
notes_content_type Content type of note, either plain text or HTML. If not provided, considered as plain text. Optional
notes_value Contents of notes. Optional
phone_number A human-readable phone number. It may be in any telephone number format. Optional
phone_number_type The type of phone number. Optional
is_phone_number_primary Indicates if this is the user’s primary phone number. A user may only have one primary phone number. Optional
recovery_email Recovery email of the user. Optional
recovery_phone Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: +16506661212. Optional
suspended Indicates if the user is suspended. Optional
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional

Context Output

Path Type Description
GSuite.User.id String The unique ID for the user.
GSuite.User.primaryEmail String The user’s primary email address.
GSuite.User.firstName String The user’s first name.
GSuite.User.lastName String The user’s last name.
GSuite.User.customerId String The unique ID for the customer’s G Suite account.
GSuite.User.gender String Gender.
GSuite.User.suspended Boolean Indicates if the user is suspended.
GSuite.User.notesValue String Contents of notes.
GSuite.User.notesContentType String Content type of notes.
GSuite.User.isAdmin Boolean Indicates a user with super administrator privileges.
GSuite.User.creationTime Date The time the user’s account was created.
GSuite.User.phones.value String A human-readable phone number. It may be in any telephone number format.
GSuite.User.phones.type String The type of phone number.
GSuite.User.phones.primary Boolean Indicates if this is the user’s primary phone number.
GSuite.User.addresses.type String The address type.
GSuite.User.addresses.country String Country.
GSuite.User.addresses.postalCode String The ZIP or postal code.
GSuite.User.addresses.region String The abbreviated province or state.
GSuite.User.addresses.streetAddress String The street address.
GSuite.User.addresses.extendedAddress String For extended addresses, such as an address that includes a sub-region.
GSuite.User.addresses.primary Boolean If this is the user’s primary address.
GSuite.User.emails.address String The user’s secondary email.
GSuite.User.emails.type String The secondary email type.
GSuite.User.ipWhitelisted Boolean If true, the user’s IP address is added to allow list.
GSuite.User.recoveryEmail String Recovery email of the user.
GSuite.User.isDelegatedAdmin Boolean Indicates if the user is a delegated administrator.
GSuite.User.recoveryPhone String Recovery phone of the user.
GSuite.User.orgUnitPath String 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 (/).
GSuite.User.isMailboxSetup Boolean Indicates if the user’s Google mailbox is created.
GSuite.User.kind Boolean The type of the API resource.
GSuite.User.etag Boolean ETag of the resource.
GSuite.User.hashFunction String Stores the hash format of the password property.

Command Example

!gsuite-user-create admin_email=adminemail@domain.com first_name="new" last_name="user" primary_email="new.user@domain.com" password="user@123"

Context Example

{
 "GSuite":{
       "User": {
           "creationTime": "2020-09-22T11:26:26.000Z",
           "customerId": "C03puekhd",
           "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/4tvQSgzvpG3jXKVblT3Ey-0_slk\"",
           "firstName": "new",
           "hashFunction": "MD5",
           "id": "111364427621472798290",
           "isAdmin": false,
           "isDelegatedAdmin": false,
           "isMailboxSetup": false,
           "kind": "admin#directory#user",
           "lastName": "user",
           "orgUnitPath": "/",
           "primaryEmail": "new.user@domain.com"
       }
   }
}

Human Readable Output

User Details

Id Customer Id Primary Email First Name Last Name Is Admin Creation Time
111364427621472798290 C03puekhd new.user@domain.com new user false 2020-09-22T11:26:26.000Z

gsuite-group-create


Creates a group with a group name and its description.

Required Permissions

https://www.googleapis.com/auth/admin.directory.group

Base Command

gsuite-group-create

Input

Argument Name Description Required
group_email The group’s email address. Required
group_name The group’s display name. Optional
group_description An extended description to help users determine the purpose of a group. Optional
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional

Context Output

Path Type Description
GSuite.Group.kind String The type of the API resource.
GSuite.Group.id String The unique ID of a group.
GSuite.Group.etag String ETag of the resource.
GSuite.Group.email String The group’s email address.
GSuite.Group.name String The group’s display name.
GSuite.Group.directMembersCount String The number of users that are direct members of the group.
GSuite.Group.description String An extended description to help users determine the purpose of a group.
GSuite.Group.adminCreated Boolean Value is true if this group was created by an administrator rather than a user.
GSuite.Group.aliases String List of a group’s alias email addresses.
GSuite.Group.nonEditableAliases String List of the group’s non-editable alias email addresses that are outside of the account’s primary domain or subdomains.

Command Example

!gsuite-group-create group_email="testsgroup@domain.com" admin_email=adminemail@domain.com group_description="group description"

Context Example

{
    "GSuite": {
        "Group": {
            "adminCreated": true,
            "description": "group description",
            "email": "testsgroup@domain.com",
            "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/LI8IDdZB9k7tBdClkZja0jnTX9k\"",
            "id": "017dp8vu2zdcnpe",
            "kind": "admin#directory#group",
            "name": "testsgroup"
        }
    }
}

Human Readable Output

A new group named “testsgroup” created

Id Email Description Admin Created
017dp8vu2zdcnpe testsgroup@domain.com group description true

gsuite-role-assignment-list


Retrieves a paginated list of all role assignments.

Required Permissions

https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly
https://www.googleapis.com/auth/admin.directory.rolemanagement

Base Command

gsuite-role-assignment-list

Input

Argument Name Description Required
customer_id Immutable ID of the G Suite account. Optional
role_id Immutable ID of a role. If included, it returns only role assignments containing this role ID. Optional
user_key The user’s primary email address, alias email address, or unique user ID. If included in the request, returns role assignments only for this user. Optional
page_token Token to specify the next page in the list. Optional
max_results Maximum number of results to return. Acceptable values are 1 to 200, inclusive. Optional
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional

Context Output

Path Type Description
GSuite.RoleAssignment.kind String The type of the API resource.
GSuite.RoleAssignment.etag String ETag of the resource.
GSuite.RoleAssignment.roleAssignmentId Number ID of this role assignment.
GSuite.RoleAssignment.roleId Number The ID of the role that is assigned.
GSuite.RoleAssignment.assignedTo String The unique ID of the user this role is assigned to.
GSuite.RoleAssignment.scopeType String The scope in which this role is assigned.
GSuite.RoleAssignment.orgUnitId String If the role is restricted to an organization unit, this contains the ID of the organization unit to which the exercise of this role is restricted to.
GSuite.PageToken.RoleAssignment.nextPageToken String Token to specify the next page in the list.

Command Example

!gsuite-role-assignment-list customer_id=my_customer admin_email=adminemail@domain.com max_results=2 user_key=112697610

Context Example

{
    "GSuite": {
        "PageToken": {
            "RoleAssignment": {
                "nextPageToken": "1380118834"
            }
        },
        "RoleAssignment": [
            {
                "assignedTo": "112697610",
                "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/HNRTxaa_Vj5uoXcenlvlCaLm5ZM\"",
                "kind": "admin#directory#roleAssignment",
                "roleAssignmentId": "1380118833",
                "roleId": "1380118839",
                "scopeType": "CUSTOMER"
            },
            {
                "assignedTo": "112697610",
                "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/AjrcWjoYFdv8ZnxLMYDX7UhbA3w\"",
                "kind": "admin#directory#roleAssignment",
                "roleAssignmentId": "1380118834",
                "roleId": "1380118838",
                "scopeType": "CUSTOMER"
            }
        ]
    }
}

Human Readable Output

Next Page Token: 1380118834

Total Retrieved Role Assignment(s): 2

Role Assignment Id Role Id Assigned To Scope Type
1380118833 1380118839 112697610 CUSTOMER
1380118834 1380118838 112697610 CUSTOMER

gsuite-role-assignment-create


Creates a role assignment.

Required Permissions

https://www.googleapis.com/auth/admin.directory.rolemanagement

Base Command

gsuite-role-assignment-create

Input

Argument Name Description Required
customer_id Immutable ID of the G Suite account. Optional
role_id The ID of the role to be assigned to the user. Required
assigned_to The unique ID of the user this role is assigned to. Required
scope_type The scope in which this role is assigned. Required
org_unit_id If the role is restricted to an organization unit, this contains the ID for the organization unit the exercise of this role is restricted to. Optional
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional

Context Output

Path Type Description
GSuite.RoleAssignment.kind String The type of the API resource.
GSuite.RoleAssignment.etag String ETag of the resource.
GSuite.RoleAssignment.roleAssignmentId Number ID of this role assignment.
GSuite.RoleAssignment.roleId Number The ID of the role that is assigned.
GSuite.RoleAssignment.assignedTo String The unique ID of the user this role is assigned to.
GSuite.RoleAssignment.scopeType String The scope in which this role is assigned.
GSuite.RoleAssignment.orgUnitId String If the role is restricted to an organization unit, this contains the ID of the organization unit to which the exercise of this role is restricted to.

Command Example

!gsuite-role-assignment-create assigned_to=112697610 customer_id=my_customer role_id=13801188331880450 scope_type=CUSTOMER admin_email=adminemail@domain.com

Context Example

{
    "GSuite": {
        "RoleAssignment": {
            "assignedTo": "112697610",
            "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/bSzQO50Ycd4Fn6ibBqIioX4qhj0\"",
            "kind": "admin#directory#roleAssignment",
            "roleAssignmentId": "331880504",
            "roleId": "13801188331880450",
            "scopeType": "CUSTOMER"
        }
    }
}

Human Readable Output

Role Assignment Details

Role Assignment Id Role Id Assigned To Scope Type
331880504 13801188331880450 112697610 CUSTOMER

gsuite-role-create


Creates a new role.

Required Permissions

https://www.googleapis.com/auth/admin.directory.rolemanagement

Base Command

gsuite-role-create

Input

Argument Name Description Required
customer_id Immutable ID of the G Suite account. Optional
role_name Name of the role. Required
role_privileges The set of privileges that are granted to this role. Comma-separated list of privilege names and service ids of the form “PrivilegeName1:ServiceId1,PrivilegeName2:ServiceId2”. Required
role_description A short description of the role. Optional
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional

Context Output

Path Type Description
GSuite.Role.kind String The type of the API resource. This is always admin#directory#role.
GSuite.Role.etag String ETag of the resource.
GSuite.Role.roleId Number ID of the role.
GSuite.Role.roleName String Name of the role.
GSuite.Role.roleDescription String A short description of the role.
GSuite.Role.rolePrivileges.privilegeName String The name of the privilege.
GSuite.Role.rolePrivileges.serviceId String The obfuscated ID of the service this privilege is for.
GSuite.Role.isSystemRole Boolean Whether this is a pre-defined system role.
GSuite.Role.isSuperAdminRole Boolean Whether the role is a super admin role.

Command Example

!gsuite-role-create customer_id=my_customer role_name role_privileges="PRIVILEGE_NAME:service_id" 
admin_email=admin@domain.com

Context Example

{
 "GSuite": {
   "Role": {
     "kind": "admin#directory#role",
     "etag": "\"XVqXMfEoKXKeCEJHh6Z_d9s0pNqKA90jMskGKajpbM8/JL5ppEimKvC4Ue7Bfhb0qv7Ahqw\"",
     "roleId": "13801188331880469",
     "roleName": "role_22345",
     "rolePrivileges": [
       {
         "privilegeName": "PRIVILEGE_NAME",
         "serviceId": "service_id"
       }
     ]
   }
 }
}

Human Readable Output

A new role created

Id Name Privileges
13801188331880469 role_22345 PRIVILEGE_NAME: service_id

gsuite-token-revoke


Delete all access tokens issued by a user for an application.

Required Permissions

https://www.googleapis.com/auth/admin.directory.user.security

Base Command

gsuite-token-revoke

Input

Argument Name Description Required
client_id The Client ID of the application the token is issued to. Required
user_key Identifies the user in the API request. The value can be the user’s primary email address, alias email address, or unique user ID. Required
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional

Context Output

There is no context output for this command.

Command Example

!gsuite-token-revoke client_id=297408095146-fug707qsjv4ikron0hugpevbrjhkmsk7.apps.googleusercontent.com user_key=user1@domain.com admin_email=adminemail@domain.com

Human Readable Output

All access tokens deleted for 297408095146-fug707qsjv4ikron0hugpevbrjhkmsk7.apps.googleusercontent.com.

gsuite-user-signout


Signs a user out of all web and device sessions and reset their sign-in cookies.

Required Permissions

https://www.googleapis.com/auth/admin.directory.user.security

Base Command

gsuite-user-signout

Input

Argument Name Description Required
user_key Identifies the user in the API request. The value can be the user’s primary email address, alias email address, or unique user ID. Required

Context Output

There is no context output for this command.

gsuite-datatransfer-list


Lists the transfers for a customer by source user, destination user, or status.

Required Permissions

https://www.googleapis.com/auth/admin.datatransfer
https://www.googleapis.com/auth/admin.datatransfer.readonly

Base Command

gsuite-datatransfer-list

Input

Argument Name Description Required
customer_id Immutable ID of the G Suite account. Optional
new_owner_user_id Destination user’s profile ID. Optional
old_owner_user_id Source user’s profile ID. Optional
status Status of the transfer. Optional
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional
max_results Maximum number of results to return. Default is 100. Acceptable values are 1 to 500, inclusive. Optional
page_token Token to specify the next page in the list. Optional

Context Output

Path Type Description
GSuite.DataTransfer.kind String Identifies the resource as a DataTransfer request.
GSuite.DataTransfer.etag String ETag of the resource.
GSuite.DataTransfer.id String The transfer’s ID.
GSuite.DataTransfer.oldOwnerUserId String ID of the user whose data is being transferred.
GSuite.DataTransfer.newOwnerUserId String ID of the user to whom the data is being transferred.
GSuite.DataTransfer.overallTransferStatusCode String Overall transfer status.
GSuite.DataTransfer.requestTime Date The time at which the data transfer was requested.
GSuite.DataTransfer.applicationDataTransfers.applicationTransferStatus String Current status of transfer for this application.
GSuite.DataTransfer.applicationDataTransfers.applicationId Number The application’s ID.
GSuite.DataTransfer.applicationDataTransfers.applicationTransferParams.key String The type of the transfer parameter.
GSuite.DataTransfer.applicationDataTransfers.applicationTransferParams.value Unknown The value of the corresponding transfer parameter.
GSuite.PageToken.DataTransfer.nextPageToken String Continuation token which will be used to specify next page in list API.

Command Example

!gsuite-datatransfer-list admin_email=adminemail@domain.com customer_id=my_customer max_results=2

Context Example

{
    "GSuite": {
        "DataTransfer": [
            {
                "applicationDataTransfers": [
                    {
                        "applicationId": "55656082996",
                        "applicationTransferParams": [
                            {
                                "key": "PRIVACY_LEVEL",
                                "value": [
                                    "PRIVATE",
                                    "SHARED"
                                ]
                            }
                        ],
                        "applicationTransferStatus": "completed"
                    }
                ],
                "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/a30QB7XJOzBUhwPRCWCP1g2o7do\"",
                "id": "AKrEtIYG88pek5zyrIzBx7kV5g4JNiUshLFkMbPUYKXsTgRGIJvAyjpzpti9I38WXJ70t6ef0fUIx0EM82KfN_PPP7KKNfHeSQ",
                "kind": "admin#datatransfer#DataTransfer",
                "newOwnerUserId": "103744886667034914950",
                "oldOwnerUserId": "111046242590772774691",
                "overallTransferStatusCode": "completed",
                "requestTime": "2020-09-14T06:30:55.672Z"
            },
            {
                "applicationDataTransfers": [
                    {
                        "applicationId": "55656082996",
                        "applicationTransferParams": [
                            {
                                "key": "PRIVACY_LEVEL",
                                "value": [
                                    "PRIVATE",
                                    "SHARED"
                                ]
                            }
                        ],
                        "applicationTransferStatus": "completed"
                    }
                ],
                "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/SAQmSzZJLc6bhvvGfKFwlvsd_Fg\"",
                "id": "AKrEtIYG88pek5zyrIzBx7kV5g4Jha32YbTTHrbqLTPGaiqmLKuA3WFU7zyxmmkwUrGZcf73dt4SAcDmj5_GeCgoCRFJWbyIxg",
                "kind": "admin#datatransfer#DataTransfer",
                "newOwnerUserId": "103744886667034914950",
                "oldOwnerUserId": "111046242590772774691",
                "overallTransferStatusCode": "completed",
                "requestTime": "2020-09-14T06:31:01.051Z"
            }
        ],
        "PageToken": {
            "DataTransfer": {
                "nextPageToken": "AKrEtIYG88pek5zyrIzBx7kV5g4Jha32YbTTHrbqLTPGaiqmLKuA3WFU7zyxmmkwUrGZcf73dt4SAcDmj5_GeCgoCRFJWbyIxg"
            }
        }
    }
}

Human Readable Output

Next Page Token: AKrEtIYG88pek5zyrIzBx7kV5g4Jha32YbTTHrbqLTPGaiqmLKuA3WFU7zyxmmkwUrGZcf73dt4SAcDmj5_GeCgoCRFJWbyIxg

Total Retrieved Data Transfers: 2

Id Old Owner User Id New Owner User Id Overall Transfer Status Code Request Time Application Data Transfers
AKrEtIYG88pek5zyrIzBx7kV5g4JNiUshLFkMbPUYKXsTgRGIJvAyjpzpti9I38WXJ70t6ef0fUIx0EM82KfN_PPP7KKNfHeSQ 111046242590772774691 103744886667034914950 completed 2020-09-14T06:30:55.672Z Application Id: 55656082996
Application Transfer Status: completed

AKrEtIYG88pek5zyrIzBx7kV5g4Jha32YbTTHrbqLTPGaiqmLKuA3WFU7zyxmmkwUrGZcf73dt4SAcDmj5_GeCgoCRFJWbyIxg 111046242590772774691 103744886667034914950 completed 2020-09-14T06:31:01.051Z Application Id: 55656082996
Application Transfer Status: completed

gsuite-custom-user-schema-create


Creates a custom user schema to add custom fields to user profiles.
Note: field_raw_json has higher precedence when both field_raw_json and field_json_entry_id are provided.

Required Permissions

https://www.googleapis.com/auth/admin.directory.userschema

Base Command

gsuite-custom-user-schema-create

Input

Argument Name Description Required
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional
customer_id Immutable ID of the G Suite account. Optional
schema_name The schema’s name. Required
schema_display_name Display name for the schema. Required
field_raw_json Raw JSON containing fields of the schema. Acceptable values for
fieldType are BOOL, DATE, DOUBLE, EMAIL, INT64, PHONE, and STRING. Acceptable
values for readAccessType are ADMINS_AND_SELF- Only administrators and
the associated user can see values, and ALL_DOMAIN_USERS- Any user in
your domain can see values.
E.g.
{
“fields”: [
{
“fieldType”: string,
“fieldName”: string,
“displayName”: string,
“multiValued”: boolean,
“readAccessType”: string,
“indexed”: boolean,
“numericIndexingSpec”: {
“minValue”: double,
“maxValue”: double
}
}
]
}
Optional
field_json_entry_id JSON file entry ID containing fields of the schema. Acceptable values for
fieldType are BOOL, DATE, DOUBLE, EMAIL, INT64, PHONE, and STRING. Acceptable
values for readAccessType are ADMINS_AND_SELF- Only administrators and
the associated user can see values, and ALL_DOMAIN_USERS- Any user in
your domain can see values.
E.g.
{
“fields”: [
{
“fieldType”: string,
“fieldName”: string,
“displayName”: string,
“multiValued”: boolean,
“readAccessType”: string,
“indexed”: boolean,
“numericIndexingSpec”: {
“minValue”: double,
“maxValue”: double
}
}
]
}
Optional

Context Output

Path Type Description
GSuite.UserSchema.kind String The type of the API resource.
GSuite.UserSchema.etag String The ETag of the resource.
GSuite.UserSchema.schemaId String The unique identifier of the schema.
GSuite.UserSchema.schemaName String The schema’s name.
GSuite.UserSchema.displayName String Display Name for the schema.
GSuite.UserSchema.fields.kind String The kind of resource this is.
GSuite.UserSchema.fields.fieldId String The unique identifier of the field.
GSuite.UserSchema.fields.etag String The ETag of the field.
GSuite.UserSchema.fields.fieldType String The type of the field.
GSuite.UserSchema.fields.fieldName String The name of the field.
GSuite.UserSchema.fields.displayName String Display name of the field.
GSuite.UserSchema.fields.multiValued Boolean A boolean specifying whether this is a multi-valued field or not.
GSuite.UserSchema.fields.readAccessType Boolean Specifies who can view values of this field.
GSuite.UserSchema.fields.indexed Boolean Specifies whether the field is indexed or not.
GSuite.UserSchema.fields.numericIndexingSpecMinValue Number Minimum value of this field.
GSuite.UserSchema.fields.numericIndexingSpecMaxValue Number Maximum value of this field.

Command Example

!gsuite-custom-user-schema-create customer_id=my_customer schema_display_name=test44 schema_name=schema_name4 admin_email=adminemail@domain.com field_raw_json="{\"fields\":[{\"fieldType\":\"BOOL\",\"fieldName\":\"surname4\",\"displayName\":\"Surname4\",\"multiValued\":true}]}"

Context Example

{
    "GSuite": {
        "UserSchema": {
            "displayName": "test44",
            "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/MjPzd5dwc-Ht2kOBcz-U0AZNWFA\"",
            "fields": [
                {
                    "displayName": "Surname4",
                    "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/O3s2wxQMfyD89C1J8b2M021ICl4\"",
                    "fieldId": "ltlnHmK5SJGk8zXvNWYA9g==",
                    "fieldName": "surname4",
                    "fieldType": "BOOL",
                    "kind": "admin#directory#schema#fieldspec",
                    "multiValued": true,
                    "readAccessType": "ALL_DOMAIN_USERS"
                }
            ],
            "kind": "admin#directory#schema",
            "schemaId": "5JijaVh6R7ar7zK0u95XSw==",
            "schemaName": "schema_name4"
        }
    }
}

Human Readable Output

Custom User Schema Details

Schema Id: 5JijaVh6R7ar7zK0u95XSw== \
Schema Name: schema_name4 \
Schema Display Name: test44

Field Details

Field Id Field Name Display Name Field Type Read Access Type Multi Valued
ltlnHmK5SJGk8zXvNWYA9g== surname4 Surname4 BOOL ALL_DOMAIN_USERS true

gsuite-custom-user-schema-update


Updates a custom user schema.
Note: field_raw_json has higher precedence when both field_raw_json and field_json_entry_id are provided.

Required Permissions

https://www.googleapis.com/auth/admin.directory.userschema

Base Command

gsuite-custom-user-schema-update

Input

Argument Name Description Required
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional
customer_id Immutable ID of the G Suite account. Optional
schema_name The schema’s name. Optional
schema_id Immutable ID of the schema. Optional
schema_display_name Display name for the schema. Optional
field_raw_json Raw JSON containing fields of the schema. Acceptable values for
fieldType are BOOL, DATE, DOUBLE, EMAIL, INT64, PHONE, and STRING. Acceptable
values for readAccessType are ADMINS_AND_SELF- Only administrators and
the associated user can see values, and ALL_DOMAIN_USERS- Any user in
your domain can see values.
E.g.
{
“fields”: [
{
“fieldType”: string,
“fieldName”: string,
“displayName”: string,
“multiValued”: boolean,
“readAccessType”: string,
“indexed”: boolean,
“numericIndexingSpec”: {
“minValue”: double,
“maxValue”: double
}
}
]
}
Optional
field_json_entry_id JSON file entry ID containing fields of the schema. Acceptable values for
fieldType are BOOL, DATE, DOUBLE, EMAIL, INT64, PHONE, and STRING. Acceptable
values for readAccessType are ADMINS_AND_SELF- Only administrators and
the associated user can see values, and ALL_DOMAIN_USERS- Any user in
your domain can see values.
E.g.
{
“fields”: [
{
“fieldType”: string,
“fieldName”: string,
“displayName”: string,
“multiValued”: boolean,
“readAccessType”: string,
“indexed”: boolean,
“numericIndexingSpec”: {
“minValue”: double,
“maxValue”: double
}
}
]
}
Optional

Context Output

Path Type Description
GSuite.UserSchema.kind String The type of the API resource.
GSuite.UserSchema.etag String The ETag of the resource.
GSuite.UserSchema.schemaId String The unique identifier of the schema.
GSuite.UserSchema.schemaName String The schema’s name.
GSuite.UserSchema.displayName String Display Name for the schema.
GSuite.UserSchema.fields.kind String The kind of resource this is.
GSuite.UserSchema.fields.fieldId String The unique identifier of the field.
GSuite.UserSchema.fields.etag String The ETag of the field.
GSuite.UserSchema.fields.fieldType String The type of the field.
GSuite.UserSchema.fields.fieldName String The name of the field.
GSuite.UserSchema.fields.displayName String Display name of the field.
GSuite.UserSchema.fields.multiValued Boolean A boolean specifying whether this is a multi-valued field or not.
GSuite.UserSchema.fields.readAccessType Boolean Specifies who can view values of this field.
GSuite.UserSchema.fields.indexed Boolean Specifies whether the field is indexed or not.
GSuite.UserSchema.fields.numericIndexingSpecMinValue Number Minimum value of this field.
GSuite.UserSchema.fields.numericIndexingSpecMaxValue Number Maximum value of this field.

Command Example

!gsuite-custom-user-schema-update customer_id=my_customer admin_email=adminemail@domain.com field_raw_json="{\"fields\":[{\"fieldType\":\"BOOL\",\"fieldName\":\"surname\",\"displayName\":\"Surname\",\"multiValued\":true}]}" schema_id=ZZi9zLU7ROmyBoufhbn9gg== schema_name=test222

Context Example

{
    "GSuite": {
        "UserSchema": {
            "displayName": "test222",
            "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/T3_i5bZrWyPLStFhy3G4vdhHyws\"",
            "fields": [
                {
                    "displayName": "Surname",
                    "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/9vV1znpuuEz23OOT4Vy8K6kMy8A\"",
                    "fieldId": "cMmMeyLxTKyM-7m7bb9Y_Q==",
                    "fieldName": "surname",
                    "fieldType": "BOOL",
                    "kind": "admin#directory#schema#fieldspec",
                    "multiValued": true
                }
            ],
            "kind": "admin#directory#schema",
            "schemaId": "ZZi9zLU7ROmyBoufhbn9gg==",
            "schemaName": "test222"
        }
    }
}

Human Readable Output

Updated Custom User Schema Details

Schema Id: ZZi9zLU7ROmyBoufhbn9gg== \
Schema Name: test222 \
Schema Display Name: test222

Field Details

Field Id Field Name Display Name Field Type Multi Valued
cMmMeyLxTKyM-7m7bb9Y_Q== surname Surname BOOL true

gsuite-datatransfer-request-create


Inserts a data transfer request.

Note: If all three applications_raw_json, applications_raw_json_entry_id and application_id are provided
the higher precedence will be in order of applications_raw_json, applications_raw_json_entry_id,
and application_id respectively.

Required Permissions

https://www.googleapis.com/auth/admin.datatransfer

Base Command

gsuite-datatransfer-request-create

Input

Argument Name Description Required
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional
old_owner_id ID of the user whose data is being transferred. Required
new_owner_id ID of the user to whom the data is being transferred. Required
application_id The application’s ID. Optional
application_transfer_params Key and value pair of application data transfer parameters. Key and value must be delimited by (:) colon. Multiple values must be delimited by (,) comma. Multiple key-value pairs must be delimited by (;) semi-colon. E.g. key1:val;key2:val1,val2 Optional
applications_raw_json Raw JSON containing the whole body of the application data transfers.
E.g.
{
“applicationDataTransfers”: [
{
“applicationId”: long,
“applicationTransferParams”: [
{
“key”: string,
“value”: [
string
]
}
]
}
]
}
Optional
applications_raw_json_entry_id JSON file Entry ID containing the whole body of the application data transfers.
E.g.
{
“applicationDataTransfers”: [
{
“applicationId”: long,
“applicationTransferParams”: [
{
“key”: string,
“value”: [
string
]
}
]
}
]
}
Optional

Context Output

Path Type Description
GSuite.DataTransfer.kind String Identifies the resource as a DataTransfer request.
GSuite.DataTransfer.etag String ETag of the resource.
GSuite.DataTransfer.id String The transfer’s ID.
GSuite.DataTransfer.oldOwnerUserId String ID of the user whose data is being transferred.
GSuite.DataTransfer.newOwnerUserId String ID of the user to whom the data is being transferred.
GSuite.DataTransfer.applicationDataTransfers.applicationId Number The application’s ID.
GSuite.DataTransfer.applicationDataTransfers.applicationTransferParams.key String The type of the transfer parameter.
GSuite.DataTransfer.applicationDataTransfers.applicationTransferParams.value Unknown The value of the corresponding transfer parameter.
GSuite.DataTransfer.applicationDataTransfers.applicationTransferStatus String Current status of transfer for this application.
GSuite.DataTransfer.overallTransferStatusCode String Overall transfer status.
GSuite.DataTransfer.requestTime Date The time at which the data transfer was requested.

Command Example

!gsuite-datatransfer-request-create application_id=435070579839 application_transfer_params="RELEASE_RESOURCES:TRUE" new_owner_id=108028652821197762751 old_owner_id=119443780932332

Context Example

{
    "GSuite": {
        "DataTransfer": {
            "applicationDataTransfers": [
                {
                    "applicationId": "435070579839",
                    "applicationTransferParams": [
                        {
                            "key": "RELEASE_RESOURCES",
                            "value": [
                                "TRUE"
                            ]
                        }
                    ],
                    "applicationTransferStatus": "pending"
                }
            ],
            "etag": "\"kUnwYYg1BVyzlZxLWewcY0fcrpfz6LbI3xDE6gsvPl4/pNKVLr3d6L1hPB8f4CoG08y4sSw\"",
            "id": "AKrEtIYCgUCoI7j9IqOCJ2q4HkJUVaZJaYpgSPDEP-GIzkHz3pH1CQuBa-P38vqhSOSuKcJOwPT8GSKhTGDqOw8vJt8FQeTL8Q",
            "kind": "admin#datatransfer#DataTransfer",
            "newOwnerUserId": "108028652821197762751",
            "oldOwnerUserId": "119443780932332",
            "overallTransferStatusCode": "inProgress",
            "requestTime": "2020-09-22T07:44:44.473Z"
        }
    }
}

Human Readable Output

Data transfer request inserted successfully

Id Old Owner User Id New Owner User Id Overall Transfer Status Code Request Time Application Data Transfers
AKrEtIYCgUCoI7j9IqOCJ2q4HkJUVaZJaYpgSPDEP-GIzkHz3pH1CQuBa-P38vqhSOSuKcJOwPT8GSKhTGDqOw8vJt8FQeTL8Q 119443780932332 108028652821197762751 inProgress 2020-09-22T07:44:44.473Z Application Id: 435070579839,
Application Transfer Status: pending

gsuite-user-update


Updates a user.

Required Permissions

https://www.googleapis.com/auth/admin.directory.user

Base Command

gsuite-user-update

Input

Argument Name Description Required
first_name The user’s first name. Optional
last_name The user’s last name. Optional
password Stores the password for the user account. A password can contain any combination of ASCII characters. A minimum of 8 characters is required. The maximum length is 100 characters. The password will be sent in MD5 hash format. Optional
primary_email The user’s primary email address. The primary_email must be unique and cannot be an alias of another user. Optional
country User’s Country. Optional
address_type The address type. Optional
postal_code The ZIP or postal code, if applicable. Optional
is_address_primary Set to true, If this is the user’s primary address. Optional
extended_address For extended addresses, such as an address that includes a sub-region. Optional
region The abbreviated province or state. Optional
street_address The street address, such as 1600 Amphitheatre Parkway. Whitespace within the string is ignored; however, newlines are significant. Optional
secondary_email_address The user’s secondary email address. Optional
secondary_email_type The type of the secondary email account. Optional
gender User’s gender. Optional
is_ip_white_listed If true, the user’s IP address is added to allow list. Optional
notes_content_type Content type of note, either plain text or HTML. If not provided, considered as plain text. Optional
notes_value Contents of notes. Optional
phone_number A human-readable phone number. It may be in any telephone number format. Optional
phone_number_type The type of phone number. Optional
is_phone_number_primary Indicates if this is the user’s primary phone number. A user may only have one primary phone number. Optional
recovery_email Recovery email of the user. Optional
recovery_phone Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: +16506661212. Optional
suspended Indicates if the user is suspended. Optional
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional
user_key Identifies the user in the API request. The value can be the user’s primary email address, alias email address, or unique user ID. Required
archived Indicates if the user is archived. Optional
org_unit_path To move the user to OU (Organization Unit). 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 (/). Optional

Context Output

Path Type Description
GSuite.User.id String The unique ID for the user.
GSuite.User.primaryEmail String The user’s primary email address.
GSuite.User.firstName String The user’s first name.
GSuite.User.lastName String The user’s last name.
GSuite.User.customerId String The unique ID for the customer’s G Suite account.
GSuite.User.gender String Gender.
GSuite.User.suspended Boolean Indicates if the user is suspended.
GSuite.User.notesValue String Contents of notes.
GSuite.User.notesContentType String Content type of notes.
GSuite.User.isAdmin Boolean Indicates a user with super administrator privileges.
GSuite.User.creationTime Date The time the user’s account was created.
GSuite.User.phones.value String A human-readable phone number. It may be in any telephone number format.
GSuite.User.phones.type String The type of phone number.
GSuite.User.phones.primary Boolean Indicates if this is the user’s primary phone number.
GSuite.User.phones.customType String If the value of type is custom, this property contains the custom type.
GSuite.User.addresses.type String The address type.
GSuite.User.addresses.customType String If the address type is custom, this property contains the custom value.
GSuite.User.addresses.sourceIsStructured Boolean Indicates if the user-supplied address was formatted. Formatted addresses are not currently supported.
GSuite.User.addresses.formatted String A full and unstructured postal address. This is not synced with the structured address fields.
GSuite.User.addresses.poBox String The post office box, if present.
GSuite.User.addresses.locality String The town or city of the address.
GSuite.User.addresses.countryCode String The country code. Uses the ISO 3166-1 standard.
GSuite.User.addresses.country String Country.
GSuite.User.addresses.postalCode String The ZIP or postal code.
GSuite.User.addresses.region String The abbreviated province or state.
GSuite.User.addresses.streetAddress String The street address.
GSuite.User.addresses.extendedAddress String For extended addresses, such as an address that includes a sub-region.
GSuite.User.addresses.primary Boolean If this is the user’s primary address.
GSuite.User.emails.address String The user’s secondary email.
GSuite.User.emails.type String The secondary email type.
GSuite.User.emails.customType String If the value of type is custom, this property contains the custom type string.
GSuite.User.emails.primary Boolean Indicates if this is the user’s primary email. Only one entry can be marked as primary.
GSuite.User.ipWhitelisted Boolean If true, the user’s IP address is added.
GSuite.User.recoveryEmail String Recovery email of the user.
GSuite.User.isDelegatedAdmin Boolean Indicates if the user is a delegated administrator.
GSuite.User.recoveryPhone String Recovery phone of the user.
GSuite.User.orgUnitPath String 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 (/).
GSuite.User.isMailboxSetup Boolean Indicates if the user’s Google mailbox is created.
GSuite.User.kind Boolean The type of the API resource.
GSuite.User.etag Boolean ETag of the resource.
GSuite.User.hashFunction String Stores the hash format of the password property.
GSuite.User.archived Boolean Indicates if the user is archived.
GSuite.User.fullName String The user’s full name formed by concatenating the first and last name values.
GSuite.User.lastLoginTime Date The last time the user logged into the user’s account. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example, 2010-04-05T17:30:04+01:00.
GSuite.User.deletionTime Date The time the user’s account was deleted. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example 2010-04-05T17:30:04+01:00.
GSuite.User.agreedToTerms Boolean This property is true if the user has completed an initial login and accepted the Terms of Service agreement.
GSuite.User.suspensionReason String Has the reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the suspended property is true.
GSuite.User.changePasswordAtNextLogin Boolean Indicates if the user is forced to change their password at next login. This setting doesn’t apply when the user signs in via a third-party identity provider.
GSuite.User.ims.type Boolean Type of the user’s Instant Messenger (IM) account.
GSuite.User.ims.customType String If the IM type is custom, this property holds the custom type string.
GSuite.User.ims.protocol String An IM protocol identifies the IM network. The value can be a custom network or the standard network.
GSuite.User.ims.customProtocol String If the protocol value is custom_protocol, this property holds the custom protocol’s string.
GSuite.User.ims.im String The user’s IM network ID.
GSuite.User.ims.primary Boolean If this is the user’s primary IM. Only one entry in the IM list can have a value of true.
GSuite.User.externalIds.value String The value of the external ID.
GSuite.User.externalIds.type String The type of the external ID.
GSuite.User.externalIds.customType String If the external ID type is custom, this property holds the custom type.
GSuite.User.relations.value String The name of the person the user is related to.
GSuite.User.relations.type String The type of relation.
GSuite.User.relations.customType String If the value of type is custom, this property contains the custom type.
GSuite.User.organizations.name String The name of the organization.
GSuite.User.organizations.title String The user’s title within the organization, for example ‘member’ or ‘engineer’.
GSuite.User.organizations.primary Boolean Indicates if this is the user’s primary organization. A user may only have one primary organization.
GSuite.User.organizations.type String The type of organization.
GSuite.User.organizations.customType String If the value of type is custom, this property contains the custom type.
GSuite.User.organizations.department String Specifies the department within the organization, such as ‘sales’ or ‘engineering’.
GSuite.User.organizations.symbol String Text string symbol of the organization. For example, the text symbol for Google is GOOG.
GSuite.User.organizations.location String The physical location of the organization. This does not need to be a fully qualified address.
GSuite.User.organizations.description String The description of the organization.
GSuite.User.organizations.domain String The domain the organization belongs to.
GSuite.User.organizations.costCenter String The cost center of the user’s organization.
GSuite.User.organizations.fullTimeEquivalent String The full-time equivalent millipercent within the organization (100000 = 100%).
GSuite.User.languages.languageCode String Language Code. Should be used for storing Google III LanguageCode string representation for language. Illegal values cause SchemaException.
GSuite.User.languages.customLanguage String Other language. A user can provide their own language name if there is no corresponding Google III language code. If this is set, LanguageCode can’t be set.
GSuite.User.posixAccounts.username String The username of the account.
GSuite.User.posixAccounts.uid Number The POSIX compliant user ID.
GSuite.User.posixAccounts.gid Number The default group ID.
GSuite.User.posixAccounts.homeDirectory String The path to the home directory for this account.
GSuite.User.posixAccounts.shell String The path to the login shell for this account.
GSuite.User.posixAccounts.gecos String The GECOS (user information) for this account.
GSuite.User.posixAccounts.systemId String System identifier for which account Username or Uid apply to.
GSuite.User.posixAccounts.primary Boolean If this is user’s primary account within the SystemId.
GSuite.User.posixAccounts.accountId String A POSIX account field identifier.
GSuite.User.posixAccounts.operatingSystemType String The operating system type for this account.
GSuite.User.sshPublicKeys.key String An SSH public key.
GSuite.User.sshPublicKeys.expirationTimeUsec String An expiration time in microseconds since epoch.
GSuite.User.sshPublicKeys.fingerprint String A SHA-256 fingerprint of the SSH public key.
GSuite.User.aliases Unknown List of the user’s alias email addresses.
GSuite.User.nonEditableAliases Unknown List of the user’s non-editable alias email addresses. These are typically outside the account’s primary domain or sub-domain.
GSuite.User.websites.value String The URL of the website.
GSuite.User.websites.primary Boolean If this is user’s primary website or not.
GSuite.User.websites.type String The type or purpose of the website. For example, a website could be labeled as home or blog. Alternatively, an entry can have a custom type.
GSuite.User.websites.customType String The custom type. Only used if the type is custom.
GSuite.User.locations.type String The location type.
GSuite.User.locations.customType String If the location type is custom, this property contains the custom value.
GSuite.User.locations.area String Textual location. This is most useful for display purposes to concisely describe the location. For example, “Mountain View, CA”, “Near Seattle”.
GSuite.User.locations.buildingId String Building identifier.
GSuite.User.locations.floorName String Floor name/number.
GSuite.User.locations.floorSection String Floor section. More specific location within the floor. For example, if a floor is divided into sections “A”, “B”, and “C”, this field would identify one of those values.
GSuite.User.locations.deskCode String Most specific textual code of individual desk location.
GSuite.User.keywords.type String Each entry can have a type which indicates standard type of that entry. For example, keyword could be of type occupation or outlook. In addition to the standard type, an entry can have a custom type and can give it any name. Such types should have the CUSTOM value as type and also have a customType value.
GSuite.User.keywords.customType String Custom Type.
GSuite.User.keywords.value String Keyword.
GSuite.User.isEnrolledIn2Sv Boolean Is enrolled in 2-step verification.
GSuite.User.isEnforcedIn2Sv Boolean Is 2-step verification enforced.
GSuite.User.includeInGlobalAddressList Boolean 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.
GSuite.User.thumbnailPhotoUrl String Photo Url of the user.
GSuite.User.thumbnailPhotoEtag String ETag of the user’s photo.
GSuite.User.customSchemas Unknown Custom fields of the user.

Command Example

!gsuite-user-update first_name="test" last_name="user" user_key="test@domain.io"

Context Example

{
    "GSuite": {
        "User": {
            "agreedToTerms": true,
            "archived": false,
            "changePasswordAtNextLogin": false,
            "creationTime": "2020-09-19T13:43:57.000Z",
            "customerId": "C03puekhd",
            "emails": [
                {
                    "address": "test1@domain.io",
                    "type": "custom"
                },
                {
                    "address": "test@domain.io",
                    "primary": true
                },
                {
                    "address": "fetch.incident@nimbledata.io.test-google-a.com"
                }
            ],
            "etag": "\"9T9vzOl0oqU3TCQ3eSvkwrTkXlbD64F_wxS6Ylj40QU/GKWilUYP3FNjmD4oxz40br3JKWc\"",
            "firstName": "test",
            "id": "113716761692464219843",
            "includeInGlobalAddressList": true,
            "ipWhitelisted": false,
            "isAdmin": false,
            "isDelegatedAdmin": false,
            "isMailboxSetup": true,
            "kind": "admin#directory#user",
            "lastLoginTime": "2020-10-02T04:59:48.000Z",
            "lastName": "user",
            "nonEditableAliases": [
                "test@domain.io.test-google-a.com"
            ],
            "orgUnitPath": "/",
            "primaryEmail": "test@domain.io",
            "suspended": false
        }
    }
}

Human Readable Output

Updated User Details

Id Customer Id Primary Email First Name Last Name Archived Suspended Org Unit Path Is Admin Creation Time Secondary Email Details Ip Whitelisted
113716761692464219843 C03puekhd test@domain.io test user false false / false 2020-09-19T13:43:57.000Z Address: test1@nimbledata.io
Type: custom
false

gsuite-user-delete


Deletes a user.

Required Permissions

https://www.googleapis.com/auth/admin.directory.user

Base Command

gsuite-user-delete

Input

Argument Name Description Required
user_key Identifies the user in the API request. The value can be the user’s primary email address, alias email address, or unique user ID. Required
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional

Context Output

There is no context output for this command.

Command Example

!gsuite-user-delete user_key=user.test@domain.io

Human Readable Output

User with user key user.test@domain.io deleted successfully.

gsuite-group-get


Retreive a group’s details given a group key.

Required Permissions

https://www.googleapis.com/auth/admin.directory.group

Base Command

gsuite-group-get

Input

Argument Name Description Required
group One of the following: group email address, group alias, or the unique group ID. Required

Context Output

Path Type Description
GSuite.Group.kind String The type of the API resource.
GSuite.Group.id String The unique ID of a group.
GSuite.Group.etag String ETag of the resource.
GSuite.Group.email String The group’s email address.
GSuite.Group.name String The group’s display name.
GSuite.Group.directMembersCount String The number of users that are direct members of the group.
GSuite.Group.description String An extended description to help users determine the purpose of a group.
GSuite.Group.adminCreated Boolean Value is true if this group was created by an administrator rather than a user.
GSuite.Group.aliases String List of a group’s alias email addresses.
GSuite.Group.nonEditableAliases String List of the group’s non-editable alias email addresses that are outside of the account’s primary domain or subdomains.

Command example

!gsuite-group-get group=test-group@demistodev.com

Context Example

{
    "GSuite": {
        "Group": {
            "adminCreated": true,
            "description": "Test Group",
            "directMembersCount": "1",
            "email": "test-group@demistodev.com",
            "etag": "example_etag",
            "id": "example_id",
            "kind": "admin#directory#group",
            "name": "Test Group",
            "nonEditableAliases": [
                "test-group@demistodev.com.test-google-a.com"
            ]
        }
    }
}

Human Readable Output

Found group named “Atlassian Test Group”

Id Email Description Admin Created
example_id test-group@demistodev.com Test Group true

gsuite-user-get


Retrieve a user’s details given a user key

Required Permissions

https://www.googleapis.com/auth/admin.directory.user

Base Command

gsuite-user-get

Input

Argument Name Description Required
user One of the following: user email address, alias email address, or the unique user ID. Required

Context Output

Path Type Description
GSuite.User.id String The unique ID for the user.
GSuite.User.primaryEmail String The user’s primary email address.
GSuite.User.firstName String The user’s first name.
GSuite.User.lastName String The user’s last name.
GSuite.User.customerId String The unique ID for the customer’s G Suite account.
GSuite.User.gender String Gender.
GSuite.User.suspended Boolean Indicates if the user is suspended.
GSuite.User.notesValue String Contents of notes.
GSuite.User.notesContentType String Content type of notes.
GSuite.User.isAdmin Boolean Indicates a user with super administrator privileges.
GSuite.User.creationTime Date The time the user’s account was created.
GSuite.User.phones.value String A human-readable phone number. It may be in any telephone number format.
GSuite.User.phones.type String The type of phone number.
GSuite.User.phones.primary Boolean Indicates if this is the user’s primary phone number.
GSuite.User.phones.customType String If the value of type is custom, this property contains the custom type.
GSuite.User.addresses.type String The address type.
GSuite.User.addresses.customType String If the address type is custom, this property contains the custom value.
GSuite.User.addresses.sourceIsStructured Boolean Indicates if the user-supplied address was formatted. Formatted addresses are not currently supported.
GSuite.User.addresses.formatted String A full and unstructured postal address. This is not synced with the structured address fields.
GSuite.User.addresses.poBox String The post office box, if present.
GSuite.User.addresses.locality String The town or city of the address.
GSuite.User.addresses.countryCode String The country code. Uses the ISO 3166-1 standard.
GSuite.User.addresses.country String Country.
GSuite.User.addresses.postalCode String The ZIP or postal code.
GSuite.User.addresses.region String The abbreviated province or state.
GSuite.User.addresses.streetAddress String The street address.
GSuite.User.addresses.extendedAddress String For extended addresses, such as an address that includes a sub-region.
GSuite.User.addresses.primary Boolean If this is the user’s primary address.
GSuite.User.emails.address String The user’s secondary email.
GSuite.User.emails.type String The secondary email type.
GSuite.User.emails.customType String If the value of type is custom, this property contains the custom type string.
GSuite.User.emails.primary Boolean Indicates if this is the user’s primary email. Only one entry can be marked as primary.
GSuite.User.ipWhitelisted Boolean If true, the user’s IP address is added to allow list.
GSuite.User.recoveryEmail String Recovery email of the user.
GSuite.User.isDelegatedAdmin Boolean Indicates if the user is a delegated administrator.
GSuite.User.recoveryPhone String Recovery phone of the user.
GSuite.User.orgUnitPath String 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 (/).
GSuite.User.isMailboxSetup Boolean Indicates if the user’s Google mailbox is created.
GSuite.User.kind Boolean The type of the API resource.
GSuite.User.etag Boolean ETag of the resource.
GSuite.User.hashFunction String Stores the hash format of the password property.
GSuite.User.archived Boolean Indicates if the user is archived.
GSuite.User.fullName String The user’s full name formed by concatenating the first and last name values.
GSuite.User.lastLoginTime Date The last time the user logged into the user’s account. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example, 2010-04-05T17:30:04+01:00.
GSuite.User.deletionTime Date The time the user’s account was deleted. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example 2010-04-05T17:30:04+01:00.
GSuite.User.agreedToTerms Boolean This property is true if the user has completed an initial login and accepted the Terms of Service agreement.
GSuite.User.suspensionReason String Has the reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the suspended property is true.
GSuite.User.changePasswordAtNextLogin Boolean Indicates if the user is forced to change their password at next login. This setting doesn’t apply when the user signs in via a third-party identity provider.
GSuite.User.ims.type Boolean Type of the user’s Instant Messenger (IM) account.
GSuite.User.ims.customType String If the IM type is custom, this property holds the custom type string.
GSuite.User.ims.protocol String An IM protocol identifies the IM network. The value can be a custom network or the standard network.
GSuite.User.ims.customProtocol String If the protocol value is custom_protocol, this property holds the custom protocol’s string.
GSuite.User.ims.im String The user’s IM network ID.
GSuite.User.ims.primary Boolean If this is the user’s primary IM. Only one entry in the IM list can have a value of true.
GSuite.User.externalIds.value String The value of the external ID.
GSuite.User.externalIds.type String The type of the external ID.
GSuite.User.externalIds.customType String If the external ID type is custom, this property holds the custom type.
GSuite.User.relations.value String The name of the person the user is related to.
GSuite.User.relations.type String The type of relation.
GSuite.User.relations.customType String If the value of type is custom, this property contains the custom type.
GSuite.User.organizations.name String The name of the organization.
GSuite.User.organizations.title String The user’s title within the organization, for example ‘member’ or ‘engineer’.
GSuite.User.organizations.primary Boolean Indicates if this is the user’s primary organization. A user may only have one primary organization.
GSuite.User.organizations.type String The type of organization.
GSuite.User.organizations.customType String If the value of type is custom, this property contains the custom type.
GSuite.User.organizations.department String Specifies the department within the organization, such as ‘sales’ or ‘engineering’.
GSuite.User.organizations.symbol String Text string symbol of the organization. For example, the text symbol for Google is GOOG.
GSuite.User.organizations.location String The physical location of the organization. This does not need to be a fully qualified address.
GSuite.User.organizations.description String The description of the organization.
GSuite.User.organizations.domain String The domain the organization belongs to.
GSuite.User.organizations.costCenter String The cost center of the user’s organization.
GSuite.User.organizations.fullTimeEquivalent String The full-time equivalent millipercent within the organization (100000 = 100%).
GSuite.User.languages.languageCode String Language Code. Should be used for storing Google III LanguageCode string representation for language. Illegal values cause SchemaException.
GSuite.User.languages.customLanguage String Other language. A user can provide their own language name if there is no corresponding Google III language code. If this is set, LanguageCode can’t be set.
GSuite.User.posixAccounts.username String The username of the account.
GSuite.User.posixAccounts.uid Number The POSIX compliant user ID.
GSuite.User.posixAccounts.gid Number The default group ID.
GSuite.User.posixAccounts.homeDirectory String The path to the home directory for this account.
GSuite.User.posixAccounts.shell String The path to the login shell for this account.
GSuite.User.posixAccounts.gecos String The GECOS (user information) for this account.
GSuite.User.posixAccounts.systemId String System identifier for which account Username or Uid apply to.
GSuite.User.posixAccounts.primary Boolean If this is user’s primary account within the SystemId.
GSuite.User.posixAccounts.accountId String A POSIX account field identifier.
GSuite.User.posixAccounts.operatingSystemType String The operating system type for this account.
GSuite.User.sshPublicKeys.key String An SSH public key.
GSuite.User.sshPublicKeys.expirationTimeUsec String An expiration time in microseconds since epoch.
GSuite.User.sshPublicKeys.fingerprint String A SHA-256 fingerprint of the SSH public key.
GSuite.User.aliases Unknown List of the user’s alias email addresses.
GSuite.User.nonEditableAliases Unknown List of the user’s non-editable alias email addresses. These are typically outside the account’s primary domain or sub-domain.
GSuite.User.websites.value String The URL of the website.
GSuite.User.websites.primary Boolean If this is user’s primary website or not.
GSuite.User.websites.type String The type or purpose of the website. For example, a website could be labeled as home or blog. Alternatively, an entry can have a custom type.
GSuite.User.websites.customType String The custom type. Only used if the type is custom.
GSuite.User.locations.type String The location type.
GSuite.User.locations.customType String If the location type is custom, this property contains the custom value.
GSuite.User.locations.area String Textual location. This is most useful for display purposes to concisely describe the location. For example, “Mountain View, CA”, “Near Seattle”.
GSuite.User.locations.buildingId String Building identifier.
GSuite.User.locations.floorName String Floor name/number.
GSuite.User.locations.floorSection String Floor section. More specific location within the floor. For example, if a floor is divided into sections “A”, “B”, and “C”, this field would identify one of those values.
GSuite.User.locations.deskCode String Most specific textual code of individual desk location.
GSuite.User.keywords.type String Each entry can have a type which indicates standard type of that entry. For example, keyword could be of type occupation or outlook. In addition to the standard type, an entry can have a custom type and can give it any name. Such types should have the CUSTOM value as type and also have a customType value.
GSuite.User.keywords.customType String Custom Type.
GSuite.User.keywords.value String Keyword.
GSuite.User.isEnrolledIn2Sv Boolean Is enrolled in 2-step verification.
GSuite.User.isEnforcedIn2Sv Boolean Is 2-step verification enforced.
GSuite.User.includeInGlobalAddressList Boolean 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.
GSuite.User.thumbnailPhotoUrl String Photo Url of the user.
GSuite.User.thumbnailPhotoEtag String ETag of the user’s photo.
GSuite.User.customSchemas Unknown Custom fields of the user.

Command example

!gsuite-user-get user=adminemail@domain.com

Context Example

{
    "GSuite": {
        "User": {
            "agreedToTerms": true,
            "archived": false,
            "changePasswordAtNextLogin": false,
            "creationTime": "2016-05-18T10:45:01.000Z",
            "customerId": "example_customer_id",
            "emails": [
                {
                    "address": "adminemail@domain.com",
                    "primary": true
                },
                {
                    "address": "adminemail@domain.com.test-google-a.com"
                }
            ],
            "etag": "example_etag",
            "firstName": "Example_Name",
            "fullName": "Example_Full_Name",
            "id": "example_id",
            "includeInGlobalAddressList": true,
            "ipWhitelisted": false,
            "isAdmin": true,
            "isDelegatedAdmin": false,
            "isEnforcedIn2Sv": false,
            "isEnrolledIn2Sv": false,
            "isMailboxSetup": true,
            "kind": "admin#directory#user",
            "languages": [
                {
                    "languageCode": "en",
                    "preference": "preferred"
                }
            ],
            "lastLoginTime": "2022-12-18T09:14:24.000Z",
            "lastName": "Example_LastName",
            "nonEditableAliases": [
                "adminemail@domain.com.test-google-a.com"
            ],
            "orgUnitPath": "/",
            "organizations": [
                {
                    "department": "Developers",
                    "primary": true
                }
            ],
            "phones": [
                {
                    "type": "home",
                    "value": "77777777"
                }
            ],
            "primaryEmail": "adminemail@domain.com",
            "recoveryEmail": "recovery_email@domain.com",
            "recoveryPhone": "+123456789",
            "suspended": false,
            "thumbnailPhotoEtag": "example_etag",
            "thumbnailPhotoUrl": "example_photo_url"
        }
    }
}

Human Readable Output

Retrieved details for user adminemail@domain.com

Id Customer Id Primary Email First Name Last Name Archived Suspended Org Unit Path Is Admin Creation Time Phone Details Secondary Email Details Ip Whitelisted Recovery Email Recovery Phone
103020731686044834269 C02f0zfqw adminemail@domain.com Tomer Malache false false / true 2016-05-18T10:45:01.000Z Value: 77777777
Type: home
Address: adminemail@domain.com
Primary: True
false tmalache@example.com +972545429435

google-mobiledevice-list


Retrieves a paginated list that includes company-owned mobile devices.

Required Permissions

https://www.googleapis.com/auth/admin.directory.device.mobile.readonly

Base Command

gsuite-mobiledevice-list

Input

Argument Name Description Required
customer_id The unique ID of the customer’s Google Workspace Admin account. Optional
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional
projection Whether to show all metadata fields, or only the basic metadata fields (e.g., deviceId, model, type, and status). Default is FULL. Possible values are: BASIC, FULL. Optional
query Search string using the format given at https://developers.google.com/admin-sdk/directory/v1/search-operators. Optional
order_by Device property to use for sorting results. Default is STATUS. Possible values are: DEVICE_ID, EMAIL, LAST_SYNC, MODEL, NAME, OS, STATUS, TYPE. Optional
sort_order Whether to return results in ascending or descending order. Must be used with the order_by parameter. Default is ASCENDING. Possible values are: ASCENDING, DESCENDING. Optional
limit The maximum number of records to return from the collection. The default value is 50. Optional
page_token The token of the page. Optional
page_size The number of requested results per page. The default value is 50. Max allowed value is 100. Optional

Context Output

Path Type Description
GSuite.MobileDevices.PageToken.NextPageToken String The token of the next page.
GSuite.MobileDevices.MobileListObjects Object A list of Mobile Device objects.
GSuite.MobileDevices.MobileListObjects.kind String The type of the API resource.
GSuite.MobileDevices.MobileListObjects.etag String ETag of the resource.
GSuite.MobileDevices.MobileListObjects.resourceId String The unique ID the API service uses to identify the mobile device.
GSuite.MobileDevices.MobileListObjects.deviceId String The serial number for a Google Sync mobile device. For Android and iOS devices, this is a software-generated unique identifier.
GSuite.MobileDevices.MobileListObjects.name Object A list of the owner’s usernames.
GSuite.MobileDevices.MobileListObjects.email Object A list of the owner’s email addresses.
GSuite.MobileDevices.MobileListObjects.model String The mobile device’s model name.
GSuite.MobileDevices.MobileListObjects.os String The mobile device’s operating system.
GSuite.MobileDevices.MobileListObjects.type String The type of mobile device.
GSuite.MobileDevices.MobileListObjects.status String The device’s status.
GSuite.MobileDevices.MobileListObjects.hardwareId String The IMEI/MEID unique identifier for Android hardware.
GSuite.MobileDevices.MobileListObjects.firstSync Date The date and time the device was initially synchronized with the policy settings in the Admin console.
GSuite.MobileDevices.MobileListObjects.lastSync Date The date and time the device was last synchronized with the policy settings in the Admin console.
GSuite.MobileDevices.MobileListObjects.userAgent String Gives information about the device such as os version.
GSuite.MobileDevices.MobileListObjects.serialNumber String The device’s serial number.
GSuite.MobileDevices.MobileListObjects.imei String The device’s IMEI number.
GSuite.MobileDevices.MobileListObjects.meid String The device’s MEID number.
GSuite.MobileDevices.MobileListObjects.wifiMacAddress String The device’s MAC address on Wi-Fi networks.
GSuite.MobileDevices.MobileListObjects.networkOperator String Mobile Device mobile or network operator.
GSuite.MobileDevices.MobileListObjects.defaultLanguage String The default locale used on the device.
GSuite.MobileDevices.MobileListObjects.managedAccountIsOnOwnerProfile Boolean Boolean indicating if this account is on owner/primary profile or not.
GSuite.MobileDevices.MobileListObjects.deviceCompromisedStatus String The compromised device status.
GSuite.MobileDevices.MobileListObjects.buildNumber String The device’s operating system build number.
GSuite.MobileDevices.MobileListObjects.kernelVersion String The device’s kernel version.
GSuite.MobileDevices.MobileListObjects.basebandVersion String The device’s baseband version.
GSuite.MobileDevices.MobileListObjects.unknownSourcesStatus Boolean Unknown sources enabled or disabled on device
GSuite.MobileDevices.MobileListObjects.adbStatus Boolean Adb (USB debugging) enabled or disabled on device.
GSuite.MobileDevices.MobileListObjects.developerOptionsStatus Boolean Developer options enabled or disabled on device.
GSuite.MobileDevices.MobileListObjects.otherAccountsInfo Object A list of accounts added on device.
GSuite.MobileDevices.MobileListObjects.supportsWorkProfile Boolean Work profile supported on device.
GSuite.MobileDevices.MobileListObjects.manufacturer String Mobile Device manufacturer.
GSuite.MobileDevices.MobileListObjects.releaseVersion String Mobile Device release version version.
GSuite.MobileDevices.MobileListObjects.securityPatchLevel Date Mobile Device Security patch level.
GSuite.MobileDevices.MobileListObjects.brand String Mobile Device Brand.
GSuite.MobileDevices.MobileListObjects.bootloaderVersion String Mobile Device Bootloader version.
GSuite.MobileDevices.MobileListObjects.hardware String Mobile Device Hardware.
GSuite.MobileDevices.MobileListObjects.encryptionStatus String Mobile Device Encryption Status.
GSuite.MobileDevices.MobileListObjects.devicePasswordStatus String Device Password Status
GSuite.MobileDevices.MobileListObjects.privilege String DM Agent Permission.
GSuite.MobileDevices.MobileListObjects.applications.packageName String The application’s package name.
GSuite.MobileDevices.MobileListObjects.applications.displayName String The application’s display name.
GSuite.MobileDevices.MobileListObjects.applications.versionName String The application’s version name.
GSuite.MobileDevices.MobileListObjects.applications.versionCode String The application’s version code.
GSuite.MobileDevices.MobileListObjects.applications.permission Object The list of permissions of this application.

Command example

!gsuite-mobiledevice-list customer_id=my_customer limit=2 admin_email=adminemail@domain.com

Context Example

{
    "GSuite": {
        "MobileDevices": {
            "MobileListObjects": [
                {
                    "adbStatus": false,
                    "basebandVersion": "example_baseband_version",
                    "bootloaderVersion": "G960FXXU2BRJ3",
                    "brand": "samsung",
                    "buildNumber": "example_build_number",
                    "defaultLanguage": "English",
                    "developerOptionsStatus": false,
                    "deviceCompromisedStatus": "No compromise detected",
                    "deviceId": "example_device_id",
                    "devicePasswordStatus": "On",
                    "email": [
                        "example@example.com",
                        "example@example.com"
                    ],
                    "encryptionStatus": "Encrypted",
                    "etag": "example_etag",
                    "firstSync": "2019-06-05T20:39:47.195Z",
                    "hardware": "samsungexynos9810",
                    "hardwareId": "357164099163035",
                    "imei": "357164099163035",
                    "kernelVersion": "4.9.59-14479316-QB20051937",
                    "kind": "admin#directory#mobiledevice",
                    "lastSync": "2019-06-06T04:53:44.556Z",
                    "managedAccountIsOnOwnerProfile": true,
                    "manufacturer": "samsung",
                    "meid": "",
                    "model": "SM-G960F",
                    "name": [
                        "example_name"
                    ],
                    "networkOperator": "",
                    "os": "Android 8.0.0",
                    "privilege": "Device administrator",
                    "releaseVersion": "8.0.0",
                    "resourceId": "example_resource_id",
                    "securityPatchLevel": "1538377200000",
                    "serialNumber": "example_serial_number",
                    "status": "APPROVED",
                    "supportsWorkProfile": true,
                    "type": "ANDROID",
                    "unknownSourcesStatus": true,
                    "userAgent": "Google Apps Device Policy 12.14.01",
                    "wifiMacAddress": ""
                },
                {
                    "adbStatus": false,
                    "basebandVersion": "example_baseband_version",
                    "bootloaderVersion": "",
                    "brand": "",
                    "buildNumber": "",
                    "defaultLanguage": "",
                    "developerOptionsStatus": false,
                    "deviceCompromisedStatus": "Undetected",
                    "deviceId": "example_device_id",
                    "devicePasswordStatus": "On",
                    "email": [
                        "example@example.com",
                        "example@example.com"
                    ],
                    "encryptionStatus": "",
                    "etag": "example_etag",
                    "firstSync": "2018-11-17T16:43:09.118Z",
                    "hardware": "",
                    "hardwareId": "",
                    "imei": "",
                    "kernelVersion": "",
                    "kind": "admin#directory#mobiledevice",
                    "lastSync": "2018-11-18T13:58:09.109Z",
                    "managedAccountIsOnOwnerProfile": false,
                    "manufacturer": "",
                    "meid": "",
                    "model": "iPhone 11 Pro",
                    "name": [
                        "example_name"
                    ],
                    "networkOperator": "",
                    "os": "iOS 15.4.1",
                    "privilege": "Undetected",
                    "releaseVersion": "",
                    "resourceId": "example_resource_id",
                    "securityPatchLevel": "0",
                    "serialNumber": "example_serial_number",
                    "status": "APPROVED",
                    "supportsWorkProfile": false,
                    "type": "IOS_SYNC",
                    "unknownSourcesStatus": false,
                    "userAgent": "",
                    "wifiMacAddress": ""
                }
            ]
        }
    }
}

Human Readable Output

Google Workspace Admin - Mobile Devices List

2 results found

Model Name OS Resource Id Serial Number Status Type User Names
SM-G960F Android 8.0.0” example_resource_id example_serial_number APPROVED ANDROID example_name
iPhone10,6 iOS 15.4.1 example_resource_id example_serial_number APPROVED IOS_SYNC example_name

gsuite-chromeosdevice-list


Retrieves a paginated list of company-owned ChromeOS devices.

Required Permissions

https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly

Base Command

gsuite-chromeosdevice-list

Input

Argument Name Description Required
customer_id The unique ID of the customer’s Google Workspace Admin account. Optional
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional
projection Whether to show all metadata fields, or only the basic metadata fields (e.g., deviceId, serialNumber, status, and user). Possible values are: BASIC, FULL. Optional
query Search string in the format given at https://developers.google.com/admin-sdk/directory/v1/list-query-operators. Optional
order_by Device property to use for sorting results. Possible values are: ANNOTATED_LOCATION, ANNOTATED_USER, LAST_SYNC, NOTES, SERIAL_NUMBER, STATUS. Optional
sort_order Whether to return results in ascending or descending order. Must be used with the order_by parameter. Possible values are: ASCENDING, DESCENDING. Optional
org_unit_path The full path of the organizational unit (without the leading /) or its unique ID. Optional
include_child_org_units Whether to return devices from all child organizational units. If this is set to true, ‘org_unit_path’ must be provided. Possible values are: yes, no. Optional
limit The maximum number of records to return from the collection. The default value is 50. Optional
page The page number. Optional
page_size The number of requested results per page. The default value is 50. Max allowed value is 100. Optional

Context Output

Path Type Description
GSuite.ChromeOSDevices.PageToken.NextPageToken String The token of the next page.
GSuite.ChromeOSDevices.ChromeOSListObjects List A list of Chrome OS Device objects.
GSuite.ChromeOSDevices.ChromeOSListObjects.deviceId String The unique ID of the Chrome device.
GSuite.ChromeOSDevices.ChromeOSListObjects.serialNumber String The Chrome device serial number entered when the device was enabled.
GSuite.ChromeOSDevices.ChromeOSListObjects.status String Status of the device.
GSuite.ChromeOSDevices.ChromeOSListObjects.lastSync String The date and time the device was last synchronized with the policy settings in the Admin console.
GSuite.ChromeOSDevices.ChromeOSListObjects.supportEndDate String The final date the device will be supported.
GSuite.ChromeOSDevices.ChromeOSListObjects.annotatedUser String The user of the device as noted by the administrator.
GSuite.ChromeOSDevices.ChromeOSListObjects.annotatedLocation String The address or location of the device as noted by the administrator.
GSuite.ChromeOSDevices.ChromeOSListObjects.notes String Notes about this device added by the administrator.
GSuite.ChromeOSDevices.ChromeOSListObjects.model String The device’s model information.
GSuite.ChromeOSDevices.ChromeOSListObjects.meid String The Mobile Equipment Identifier (MEID) or the International Mobile Equipment Identity (IMEI) for the 3G mobile card in a ChromeOS device.
GSuite.ChromeOSDevices.ChromeOSListObjects.orderNumber String The device’s order number.
GSuite.ChromeOSDevices.ChromeOSListObjects.willAutoRenew Boolean Determines if the device will auto renew its support after the support end date.
GSuite.ChromeOSDevices.ChromeOSListObjects.osVersion String The Chrome device’s operating system version.
GSuite.ChromeOSDevices.ChromeOSListObjects.platformVersion String The Chrome device’s platform version.
GSuite.ChromeOSDevices.ChromeOSListObjects.firmwareVersion String The Chrome device’s firmware version.
GSuite.ChromeOSDevices.ChromeOSListObjects.macAddress String The device’s wireless MAC address.
GSuite.ChromeOSDevices.ChromeOSListObjects.bootMode String The boot mode for the device.
GSuite.ChromeOSDevices.ChromeOSListObjects.lastEnrollmentTime String The date and time the device was last enrolled.
GSuite.ChromeOSDevices.ChromeOSListObjects.kind String The type of resource.
GSuite.ChromeOSDevices.ChromeOSListObjects.recentUsers List A list of recent device users, in descending order, by last login time.
GSuite.ChromeOSDevices.ChromeOSListObjects.recentUsers.type String The type of the user.
GSuite.ChromeOSDevices.ChromeOSListObjects.recentUsers.email String The user’s email address.
GSuite.ChromeOSDevices.ChromeOSListObjects.activeTimeRanges List A list of active time ranges.
GSuite.ChromeOSDevices.ChromeOSListObjects.activeTimeRanges.activeTime Integer Duration of usage in milliseconds.
GSuite.ChromeOSDevices.ChromeOSListObjects.activeTimeRanges.date Integer Date of usage.
GSuite.ChromeOSDevices.ChromeOSListObjects.ethernetMacAddress String The device’s MAC address on the ethernet network interface.
GSuite.ChromeOSDevices.ChromeOSListObjects.annotatedAssetId String The asset identifier as noted by an administrator or specified during enrollment.
GSuite.ChromeOSDevices.ChromeOSListObjects.etag String ETag of the resource.
GSuite.ChromeOSDevices.ChromeOSListObjects.diskVolumeReports List Reports of disk space and other info about mounted/connected volumes.
GSuite.ChromeOSDevices.ChromeOSListObjects.diskVolumeReports.volumeInfo List Disk volumes.
GSuite.ChromeOSDevices.ChromeOSListObjects.diskVolumeReports.volumeInfo.volumeId String Volume id.
GSuite.ChromeOSDevices.ChromeOSListObjects.diskVolumeReports.volumeInfo.storageTotal String Total disk space [in bytes].
GSuite.ChromeOSDevices.ChromeOSListObjects.diskVolumeReports.volumeInfo.storageFree String Free disk space [in bytes].
GSuite.ChromeOSDevices.ChromeOSListObjects.systemRamTotal String Total RAM on the device in bytes.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuStatusReports List Reports of CPU utilization and temperature.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuStatusReports.reportTime String Date and time the report was received.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuStatusReports.cpuUtilizationPercentageInfo List The CPU utilization percentage.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuStatusReports.cpuTemperatureInfo List A list of CPU temperature samples.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuStatusReports.cpuTemperatureInfo.temperature Integer Temperature in Celsius degrees.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuStatusReports.cpuTemperatureInfo.label String CPU label.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo List Information regarding CPU specs in the device.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.model String The CPU model name.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.architecture String The CPU architecture.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.maxClockSpeedKhz Integer The max CPU clock speed in kHz.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus List Information for the Logical CPUs.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus.maxScalingFrequencyKhz Integer Maximum frequency the CPU is allowed to run at, by policy.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus.currentScalingFrequencyKhz Integer Current frequency the CPU is running at.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus.idleDuration String Idle time since last boot.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus.cStates List C-States indicate the power consumption state of the CPU. For more information look at documentation published by the CPU maker.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus.cStates.displayName String Name of the state.
GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus.cStates.sessionDuration String Time spent in the state since the last reboot.
GSuite.ChromeOSDevices.ChromeOSListObjects.deviceFiles List A list of device files to download.
GSuite.ChromeOSDevices.ChromeOSListObjects.deviceFiles.name String File name.
GSuite.ChromeOSDevices.ChromeOSListObjects.deviceFiles.type String File type.
GSuite.ChromeOSDevices.ChromeOSListObjects.deviceFiles.downloadUrl String File download URL.
GSuite.ChromeOSDevices.ChromeOSListObjects.deviceFiles.createTime String Date and time the file was created.
GSuite.ChromeOSDevices.ChromeOSListObjects.deviceFiles.createTime String Date and time the file was created.
GSuite.ChromeOSDevices.ChromeOSListObjects.systemRamFreeReports List Reports of amounts of available RAM memory.
GSuite.ChromeOSDevices.ChromeOSListObjects.systemRamFreeReports.reportTime String Date and time the report was received.
GSuite.ChromeOSDevices.ChromeOSListObjects.systemRamFreeReports.systemRamFreeInfo List Report of free RAM memory.
GSuite.ChromeOSDevices.ChromeOSListObjects.lastKnownNetwork List Contains last known network.
GSuite.ChromeOSDevices.ChromeOSListObjects.lastKnownNetwork.ipAddress String The IP address.
GSuite.ChromeOSDevices.ChromeOSListObjects.lastKnownNetwork.wanIpAddress String The WAN IP address.
GSuite.ChromeOSDevices.ChromeOSListObjects.autoUpdateExpiration String The timestamp after which the device will stop receiving Chrome updates or support.
GSuite.ChromeOSDevices.ChromeOSListObjects.ethernetMacAddress0 String MAC address used by the Chromebook’s internal ethernet port, and for onboard network (ethernet) interface. The format is twelve (12) hexadecimal digits without any delimiter (uppercase letters). This is only relevant for some devices.
GSuite.ChromeOSDevices.ChromeOSListObjects.dockMacAddress String Built-in MAC address for the docking station that the device connected to. Factory sets Media access control address (MAC address) assigned for use by a dock. It is reserved specifically for MAC pass through device policy. The format is twelve (12) hexadecimal digits without any delimiter (uppercase letters). This is only relevant for some devices.
GSuite.ChromeOSDevices.ChromeOSListObjects.manufactureDate String The date the device was manufactured in yyyy-mm-dd format.
GSuite.ChromeOSDevices.ChromeOSListObjects.orgUnitPath String The full parent path with the organizational unit’s name associated with the device. Path names are case insensitive. If the parent organizational unit is the top-level organization, it is represented as a forward slash, /.
GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo Object Trusted Platform Module (TPM).
GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo.family String TPM family, using the TPM 2.0 style encoding.
GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo.specLevel String TPM specification level.
GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo.manufacturer String TPM manufacturer code.
GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo.tpmModel String TPM model number.
GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo.firmwareVersion String TPM firmware version.
GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo.vendorSpecific String Vendor-specific information such as Vendor ID.
GSuite.ChromeOSDevices.ChromeOSListObjects.screenshotFiles List A list of screenshot files to download.
GSuite.ChromeOSDevices.ChromeOSListObjects.screenshotFiles.name String File name.
GSuite.ChromeOSDevices.ChromeOSListObjects.screenshotFiles.type String File type.
GSuite.ChromeOSDevices.ChromeOSListObjects.screenshotFiles.downloadUrl String File download URL.
GSuite.ChromeOSDevices.ChromeOSListObjects.screenshotFiles.createTime String Date and time the file was created.
GSuite.ChromeOSDevices.ChromeOSListObjects.orgUnitId String The unique ID of the organizational unit. orgUnitPath is the human readable version of orgUnitId. While orgUnitPath may change by renaming an organizational unit within the path, orgUnitId is unchangeable for one organizational unit.
GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus Object The status of the OS updates for the device.
GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus.state String The update state of an OS update.
GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus.targetOsVersion String New platform version of the OS image being downloaded and applied.
GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus.targetKioskAppVersion String New required platform version from the pending updated kiosk app.
GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus.updateTime String Date and time of the last successful OS update.
GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus.updateCheckTime String Date and time of the last update check.
GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus.rebootTime String Date and time of the last reboot.
GSuite.ChromeOSDevices.ChromeOSListObjects.firstEnrollmentTime String Date and time for the first time the device was enrolled.

Command example

!gsuite-chromeosdevice-list customer_id=my_customer limit=2 admin_email=adminemail@domain.com

gsuite-chromeosdevice-action


Executes an action that affects a ChromeOS Device. This includes de-provisioning, disabling, and re-enabling devices.

Required Permissions

https://www.googleapis.com/auth/admin.directory.device.chromeos

Base Command

gsuite-chromeosdevice-action

Input

Argument Name Description Required
customer_id The unique ID of the customer’s Google Workspace Admin account. Optional
admin_email Email ID of the G Suite domain admin acts on behalf of an end-user. Optional
resource_id The unique ID of the device. Required
action The action to be performed on the ChromeOS device. Possible values are: deprovision, disable, reenable, pre_provisioned_disable, pre_provisioned_reenable. Required
deprovision_reason Reason for deprovision. This field is required only when the action used is deprovision. Possible values are: different_model_replacement, retiring_device, same_model_replacement, upgrade_transfer. Optional

Context Output

There is no context output for this command.

Command Example

!gsuite-chromeosdevice-action resource_id=RESOURCE_ID action=admin_account_wipe customer_id=my_customer admin_email=admin@domain.io

Human Readable Output

ChromeOS device with resource id - RESOURCE_ID updated.

gsuite-user-reset-password


Retreive a group’s details given a group key.

Required Permissions

https://www.googleapis.com/auth/admin.directory.user

Base Command

gsuite-user-reset-password

Input

Argument Name Description Required
user_key One of the following: user email address, alias email address, or the unique user ID. Required

Context Output

Path Type Description
GSuite.User.id String The unique ID for the user.
GSuite.User.primaryEmail String The user’s primary email address.
GSuite.User.firstName String The user’s first name.
GSuite.User.lastName String The user’s last name.
GSuite.User.customerId String The unique ID for the customer’s G Suite account.
GSuite.User.gender String The user’s gender.
GSuite.User.suspended Boolean Indicates if the user is suspended.
GSuite.User.notesValue String Content of the notes.
GSuite.User.notesContentType String Content type of the notes.
GSuite.User.isAdmin Boolean Indicates a user with super administrator privileges.
GSuite.User.creationTime Date The time the user’s account was created.
GSuite.User.phones.value String A human-readable phone number. It may be in any telephone number format.
GSuite.User.phones.type String The type of phone number.
GSuite.User.phones.primary Boolean Indicates if this is the user’s primary phone number.
GSuite.User.phones.customType String If the value of type is custom, this property contains the custom type.
GSuite.User.addresses.type String The address type.
GSuite.User.addresses.customType String If the value of type is custom, this property contains the custom type.
GSuite.User.addresses.sourceIsStructured Boolean Indicates if the user-supplied address was formatted. Formatted addresses are not currently supported.
GSuite.User.addresses.formatted String A full and unstructured postal address. This is not synced with the structured address fields.
GSuite.User.addresses.poBox String The post office box, if present.
GSuite.User.addresses.locality String The town or city of the address.
GSuite.User.addresses.countryCode String The country code. Uses the ISO 3166-1 standard.
GSuite.User.addresses.country String Country.
GSuite.User.addresses.postalCode String The ZIP or postal code.
GSuite.User.addresses.region String The abbreviated province or state.
GSuite.User.addresses.streetAddress String The street address.
GSuite.User.addresses.extendedAddress String For extended addresses, such as an address that includes a sub-region.
GSuite.User.addresses.primary Boolean If this is the user’s primary address.
GSuite.User.emails.address String The user’s secondary email.
GSuite.User.emails.type String The secondary email type.
GSuite.User.emails.customType String If the value of type is custom, this property contains the custom type.
GSuite.User.emails.primary Boolean Indicates if this is the user’s primary email. Only one entry can be marked as primary.
GSuite.User.ipWhitelisted Boolean If true, the user’s IP address is added to allow the list.
GSuite.User.recoveryEmail String Recovery email of the user.
GSuite.User.isDelegatedAdmin Boolean Indicates if the user is a delegated administrator.
GSuite.User.recoveryPhone String Recovery phone of the user.
GSuite.User.orgUnitPath String 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 (/).
GSuite.User.isMailboxSetup Boolean Indicates if the user’s Google mailbox is created.
GSuite.User.kind Boolean The type of the API resource.
GSuite.User.etag Boolean ETag of the resource.
GSuite.User.hashFunction String Stores the hash format of the password property.
GSuite.User.archived Boolean Indicates if the user is archived.
GSuite.User.fullName String The user’s full name formed by concatenating the first and last name values.
GSuite.User.lastLoginTime Date The last time the user logged into the user’s account. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example, 2010-04-05T17:30:04+01:00.
GSuite.User.deletionTime Date The time the user’s account was deleted. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example 2010-04-05T17:30:04+01:00.
GSuite.User.agreedToTerms Boolean This property is true if the user has completed an initial login and accepted the Terms of Service agreement.
GSuite.User.suspensionReason String The reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the suspended property is true.
GSuite.User.changePasswordAtNextLogin Boolean Indicates if the user is forced to change their password at next login. This setting doesn’t apply when the user signs in via a third-party identity provider.
GSuite.User.ims.type Boolean Type of the user’s Instant Messenger (IM) account.
GSuite.User.ims.customType String If the IM type is custom, this property holds the custom type string.
GSuite.User.ims.protocol String An IM protocol identifies the IM network. The value can be a custom network or the standard network.
GSuite.User.ims.customProtocol String If the protocol value is custom_protocol, this property holds the custom protocol’s string.
GSuite.User.ims.im String The user’s IM network ID.
GSuite.User.ims.primary Boolean If this is the user’s primary IM. Only one entry in the IM list can have a value of true.
GSuite.User.externalIds.value String The value of the external ID.
GSuite.User.externalIds.type String The type of the external ID.
GSuite.User.externalIds.customType String If the external ID type is custom, this property holds the custom type.
GSuite.User.relations.value String The name of the person the user is related to.
GSuite.User.relations.type String The type of relationship.
GSuite.User.relations.customType String If the value of type is custom, this property contains the custom type.
GSuite.User.organizations.name String The name of the organization.
GSuite.User.organizations.title String The user’s title within the organization, for example ‘member’ or ‘engineer’.
GSuite.User.organizations.primary Boolean Indicates if this is the user’s primary organization. A user may only have one primary organization.
GSuite.User.organizations.type String The type of organization.
GSuite.User.organizations.customType String If the value of type is custom, this property contains the custom type.
GSuite.User.organizations.department String Specifies the department within the organization, such as ‘sales’ or ‘engineering’.
GSuite.User.organizations.symbol String Text string symbol of the organization. For example, the text symbol for Google is GOOG.
GSuite.User.organizations.location String The physical location of the organization. This does not need to be a fully qualified address.
GSuite.User.organizations.description String The description of the organization.
GSuite.User.organizations.domain String The domain the organization belongs to.
GSuite.User.organizations.costCenter String The cost center of the user’s organization.
GSuite.User.organizations.fullTimeEquivalent String The full-time equivalent millipercent within the organization (100000 = 100%).
GSuite.User.languages.languageCode String Language Code. Should be used for storing Google III LanguageCode string representation for language. Illegal values cause SchemaException.
GSuite.User.languages.customLanguage String Other language. A user can provide their own language name if there is no corresponding Google III language code. If this is set, LanguageCode can’t be set.
GSuite.User.posixAccounts.username String The username of the account.
GSuite.User.posixAccounts.uid Number The POSIX compliant user ID.
GSuite.User.posixAccounts.gid Number The default group ID.
GSuite.User.posixAccounts.homeDirectory String The path to the home directory for this account.
GSuite.User.posixAccounts.shell String The path to the login shell for this account.
GSuite.User.posixAccounts.gecos String The GECOS (user information) for this account.
GSuite.User.posixAccounts.systemId String System identifier for which account Username or UID applies to.
GSuite.User.posixAccounts.primary Boolean If this is the user’s primary account within the SystemId.
GSuite.User.posixAccounts.accountId String A POSIX account field identifier.
GSuite.User.posixAccounts.operatingSystemType String The operating system type for this account.
GSuite.User.sshPublicKeys.key String An SSH public key.
GSuite.User.sshPublicKeys.expirationTimeUsec String An expiration time in microseconds since epoch.
GSuite.User.sshPublicKeys.fingerprint String A SHA-256 fingerprint of the SSH public key.
GSuite.User.aliases Unknown List of the user’s alias email addresses.
GSuite.User.nonEditableAliases Unknown List of the user’s non-editable alias email addresses. These are typically outside the account’s primary domain or sub-domain.
GSuite.User.websites.value String The URL of the website.
GSuite.User.websites.primary Boolean If this is the user’s primary website or not.
GSuite.User.websites.type String The type or purpose of the website. For example, a website could be labeled as home or blog. Alternatively, an entry can have a custom type.
GSuite.User.websites.customType String The custom type. Only used if the type is custom.
GSuite.User.locations.type String The location type.
GSuite.User.locations.customType String If the location type is custom, this property contains the custom value.
GSuite.User.locations.area String Textual location. This is most useful for display purposes to concisely describe the location. For example, “Mountain View, CA”, “Near Seattle”.
GSuite.User.locations.buildingId String Building identifier.
GSuite.User.locations.floorName String Floor name/number.
GSuite.User.locations.floorSection String Floor section. More specific location within the floor. For example, if a floor is divided into sections “A”, “B”, and “C”, this field would identify one of those values.
GSuite.User.locations.deskCode String Most specific textual code of individual desk location.
GSuite.User.keywords.type String Each entry can have a type which indicates the standard type of that entry. For example, keyword could be of type occupation or outlook. In addition to the standard type, an entry can have a custom type and can give it any name. Such types should have the CUSTOM value as type and also have a customType value.
GSuite.User.keywords.customType String Custom Type.
GSuite.User.keywords.value String Keyword.
GSuite.User.isEnrolledIn2Sv Boolean Is enrolled in 2-step verification.
GSuite.User.isEnforcedIn2Sv Boolean Is 2-step verification enforced.
GSuite.User.includeInGlobalAddressList Boolean 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.
GSuite.User.thumbnailPhotoUrl String Photo URL of the user.
GSuite.User.thumbnailPhotoEtag String ETag of the user’s photo.
GSuite.User.customSchemas Unknown Custom fields of the user.

Command Example

gsuite-user-reset-password user_key=nikolic@demistodev.com

Context Example

{
    "GSuite": {
        "User": {
            "firstName": "Nemanja",
            "fullName": "Nemanja Nikolic",
            "lastName": "Nikolic",
            "kind": "admin#directory#user",
            "id": "104065793340555884068",
            "etag": "BvGfkzKoKVD0NM7VdXdzkXDD-nHLkyMjheL_9Z5X0H0/oMJEIb2O8LE-zfPM0TV_9m3WkMA",
            "primaryEmail":
            "nikolic@demistodev.com",
            "isAdmin": "False",
            "isDelegatedAdmin": "False",
            "lastLoginTime": "1970-01-01T00:00:00.000Z",
            "creationTime": "2024-02-11T13:44:14.000Z",
            "agreedToTerms": "False",
            "suspended": "False",
            "archived": "False",
            "changePasswordAtNextLogin": "true",
            "ipWhitelisted": "False",
            "emails": [
                {
                "address": "nikolic@demistodev.com",
                "primary": "True"
                },
                {
                "address": "nikolic@demistodev.com.test-google-a.com"
                }
            ],
            "nonEditableAliases": ["nikolic@demistodev.com.test-google-a.com"],
            "customerId": "C02f0zfqw",
            "orgUnitPath": "/",
            "isMailboxSetup": "True",
            "includeInGlobalAddressList": "True",
            "thumbnailPhotoUrl": "//lh3.googleusercontent.com/a/ACg8ocJ85an5w7nMMFnC78mUqjuy2jhUHv2cSn7_-DeK0X93=mo",
            "thumbnailPhotoEtag": "BvGfkzKoKVD0NM7VdXdzkXDD-nHLkyMjheL_9Z5X0H0/iIfdCQy7n1Lau3YZCJL6xXPk3WE"
        }
    }
}

Human Readable Output

Updated User Details

Id Customer Id Primary Email Change Password At Next Login
104065793340555884068 C02f0zfqw nikolic@demistodev.com true

gsuite-chromebrowserdevice-move-ou


To move Chrome browser devices assigned to an account from one organization unit to another, use the following POST request and include the access token obtained by following the “Authorization” section.

Base Command

gsuite-chromebrowserdevice-move-ou

Required Permissions

https://www.googleapis.com/auth/admin.directory.device.chromebrowsers

Input

Argument Name Description Required
customer_id The unique identifier of the customer’s Google account. Optional
resource_ids A comma-separated list of unique device IDs of Chrome browser devices to move. A maximum of 600 browsers may be moved per request. Required
org_unit_path Destination organization unit to move devices to. Full path of the organizational unit or its ID prefixed with ‘id:’. Required

Context Output

There is no context output for this command.

Command Example

!gsuite-chromebrowserdevice-move-ou customer_id="test" resource_ids="11111" org_unit_path="/testing"

Human Readable Output

Chrome browser devices have been moved to the new organization unit ORGANIZATIONAL_UNIT_PATH.

gsuite-chromebrowserdevice-list


Retrieve all Chrome browser devices for an account or a specific Chrome browser device.

Base Command

gsuite-chromebrowserdevice-list

Required Permissions

https://www.googleapis.com/auth/admin.directory.device.chromebrowsers

Input

Argument Name Description Required
customer_id The unique identifier of the customer’s Google account. Optional
device_id The unique ID of the device. Optional
order_by Field by which to order. Possible values are: id, last_sync, machine_name, extension_count, policy_count, os_version, last_signed_in_user, annotated_user, annotated_location, annotated_asset_id, notes, browser_version_channel, org_unit, enrollment_date, save_browsing_clickthrough, platform_major_version, last_activity, browser_version_sortable, os_version_sortable. Optional
org_unit_path The full path of the organizational unit or its unique ID. Optional
projection Restrict information returned to a set of selected fields. “BASIC” - Includes only the basic metadata fields (i.e., the ones found in the columns of the admin console browser list as enumerated above). “FULL” - Includes all metadata fields (as enumerated above). Possible values are: BASIC, FULL. Optional
query Search string using the list page query language (Filter Query Language) Optional
sort_order Whether to return results in ascending or descending order. Must be used with the orderBy parameter. Possible values are: ASCENDING, DESCENDING. Optional
page_size The maximum number of policy schemas to return. Default and maximum are 100. Optional
page_token Page token. Optional
limit Limit of number of devices. Optional

Context Output

Path Type Description
GSuite.ChromeBrowserDevices.nextPageToken String The token of the next page.
GSuite.ChromeBrowserDevices.browserObjects.deviceId String The unique Device ID for the device.
GSuite.ChromeBrowserDevices.browserObjects.kind String The type of device.
GSuite.ChromeBrowserDevices.browserObjects.osPlatform String Device operating system platform.
GSuite.ChromeBrowserDevices.browserObjects.osVersion String Device operating system version.
GSuite.ChromeBrowserDevices.browserObjects.machineName String Device machine name.
GSuite.ChromeBrowserDevices.browserObjects.lastRegistrationTime String Device last registration time.
GSuite.ChromeBrowserDevices.browserObjects.lastActivityTime String Device last activity time.
GSuite.ChromeBrowserDevices.browserObjects.osPlatformVersion String Device operating system platform version.
GSuite.ChromeBrowserDevices.browserObjects.serialNumber String Device serial number.
GSuite.ChromeBrowserDevices.browserObjects.virtualDeviceId String Device virtual ID.
GSuite.ChromeBrowserDevices.browserObjects.orgUnitPath String Device organizational unit path.
GSuite.ChromeBrowserDevices.browserObjects.deviceIdentifiersHistory String Device identifier history.

Command Example

!gsuite-chromebrowserdevice-list customer_id=test

Context Example

{
    "GSuite": {
        "ChromeBrowserDevices": [
            {
                "deviceId": "test", 
                "kind": "admin#directory#browserdevice", 
                "osPlatform": "Windows", 
                "osVersion": "10.0.19045.4046", 
                "machineName": "WIN10-test", 
                "lastRegistrationTime": "2024-02-20T21:16:00.902Z", 
                "lastActivityTime": "2024-02-20T21:16:00.902Z", 
                "osPlatformVersion": "Windows 10", 
                "serialNumber": "test 00 00 00", 
                "virtualDeviceId": "11111-aca1116-1111-1111-6823faec8350", 
                "orgUnitPath": "/testing", 
                "deviceIdentifiersHistory": {}
            }
        ]
    }
}

Human Readable Output

Chrome Browser Device List

Device Id Os Platform Os Version Machine Name Serial Number Org Unit Path
test Windows 10.0.19045.4046 WIN10-test test 00 00 00 /testing

gsuite-policy-modify


Modifies multiple policy values that are applied to a specific group. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in additionalTargetKeyNames, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.

Base Command

gsuite-policy-modify

Required Permissions

https://www.googleapis.com/auth/chrome.management.policy

Input

Argument Name Description Required
customer_id ID of the Google Workspace account or literal ‘my_customer’ for the customer associated with the request. Optional
target_type In case of Group use “POST…groups:batchModify”. In case of OrgUnit use “POST…orgunits:batchModify”. Possible values are: Group, OrgUnit. Required
policy_raw_json String as JSON representation of the ModifyGroupPolicyRequest
{
“requests”: [
{
“policyTargetKey”: {
“targetResource”: “orgunits/03ph8a2z1kjba6k”,
“additionalTargetKeys”: {
“app_id”: “chrome:jldhpllghnbhlbpcmnajkpdmadaolakh”
}
},
“policyValue”: {
“policySchema”: “chrome.users.apps.InstallType”,
“value”: {
“appInstallType”: “BLOCKED”
}
},
“updateMask”: “appInstallType”
}
]
}.
Optional
policy_field_json_entry_id Entry ID of the file that contains JSON representation of the ModifyGroupPolicyRequest. Optional
target_resource The target resource on which this policy is applied. The following resources are supported:

Organizational Unit (“orgunits/{orgunit_id}”)
Group (“groups/{groupId}”).
Optional
additional_target_keys Map containing the additional target key name and value pairs used to further identify the target of the policy.

A string containing a list of “key”: “value” pairs. Example: ““name”: “wrench”, “mass”: “1.3kg”, “count”: “3””.
Optional
policy_schema The fully qualified name of the policy schema that is being inherited. Optional
policy_value The value of the policy that is compatible with the schema that it is associated with Struct format. Optional
update_mask Policy fields to update. Only fields in this mask will be updated; other fields in policyValue will be ignored (even if they have values). If a field is in this list it must have a value in ‘policyValue’.
This is a comma-separated list of fully qualified names of fields. Example: “user.displayName,photo”.
Field mask format.
Optional

Context Output

There is no context output for this command.

Command Example

!gsuite-policy-modify customer_id=test target_type=Group target_resource=1111111111 policy_schema_filter=chrome.users.apps.InstallType additional_target_keys="\"app_id\":\"chrome:1111111aaaaaaaaa\"" policy_schema=chrome.users.apps.InstallType policy_value=BLOCKED update_mask=appInstallType

Human Readable Output

Policy has been modified for the customer CUSTOMER_ID.

gsuite-policy-schemas-list


Gets a list of policy schemas that match a specified filter value for a given customer.

Base Command

gsuite-policy-schemas-list

Required Permissions

https://www.googleapis.com/auth/chrome.management.policy

Input

Argument Name Description Required
customer_id ID of the Google Workspace account or literal “my_customer” for the customer associated with the request. Optional
schema_name The policy schema resource name to query. Required when asking for a specific policy. Optional
filter The schema filter is used to find a particular schema based on fields like its resource name, description and additionalTargetKeyNames. Optional
page_size The maximum number of policy schemas to return. Defaults to 100 and has a maximum of 1000. Optional
page_token Page token. Optional
limit Limit of policies returned. Optional

Context Output

Path Type Description
GSuite.PolicySchema.nextPageToken String The token of the next page.
GSuite.PolicySchema.policySchemaObjects String Policy name.
GSuite.PolicySchema.policySchemaObjects.name String Policy name.
GSuite.PolicySchema.policySchemaObjects.policyDescription String Policy description.
GSuite.PolicySchema.policySchemaObjects.definition Array Policy definition.
GSuite.PolicySchema.policySchemaObjects.definition.enumType Array Policy definition ENUM type.
GSuite.PolicySchema.policySchemaObjects.definition.messageType Array Policy definition message type.
GSuite.PolicySchema.policySchemaObjects.fieldDescriptions Array Policy file description.
GSuite.PolicySchema.policySchemaObjects.fieldDescriptions.description String Policy file description.
GSuite.PolicySchema.policySchemaObjects.fieldDescriptions.field String Policy file description field.
GSuite.PolicySchema.policySchemaObjects.fieldDescriptions.fieldConstraints Array Policy file description field constraints.
GSuite.PolicySchema.policySchemaObjects.fieldDescriptions.knownValueDescriptions List Policy file description known value description.
GSuite.PolicySchema.policySchemaObjects.notices List Policy notice.
GSuite.PolicySchema.policySchemaObjects.notices.acknowledgementRequired Boolean Policy notice is acknowledgement required.
GSuite.PolicySchema.policySchemaObjects.notices.field String Policy notice field.
GSuite.PolicySchema.policySchemaObjects.notices.noticeMessage String Policy notice message.
GSuite.PolicySchema.policySchemaObjects.notices.noticeValue String Policy notice value.
GSuite.PolicySchema.policySchemaObjects.supportUri String Policy support URI.
GSuite.PolicySchema.policySchemaObjects.schemaName String Policy schema name.
GSuite.PolicySchema.policySchemaObjects.validTargetResources List Policy valid target resources.
GSuite.PolicySchema.policySchemaObjects.policyApiLifecycle Array Policy API lifecycle.
GSuite.PolicySchema.policySchemaObjects.policyApiLifecycle.policyApiLifecycleStage String Policy API lifecycle stage.
GSuite.PolicySchema.policySchemaObjects.categoryTitle String Policy category title.
GSuite.PolicySchema.policySchemaObjects.supportedPlatforms String Policy supported platforms.

Command Example

!gsuite-policy-schemas-list customer_id=test limit=2

Context Example

{
    "GSuite": {
        "PolicySchema": [
        {
            "name": "customers/test/policySchemas/chrome.devices.test.appsconfig.AutoLaunchApp",
            "policyDescription": "Allows setting of the auto-launch app.",
            "definition": {
                "messageType": [
                    {
                        "name": "AutoLaunchApp",
                        "field": [
                            {
                                "name": "appId",
                                "number": "1",
                                "label": "LABEL_OPTIONAL",
                                "type": "TYPE_STRING"
                            }
                        ]
                    }
                ],
                "enumType": [
                    {
                        "name": "Rotation",
                        "value": [
                            {
                                "name": "ROTATE_0",
                                "number": "0"
                            }
                        ]
                    }
                ]
            },
            "fieldDescriptions": [
                {
                    "field": "appId",
                    "description": "Id of the app prefixed with one of either \"chrome:\" or \"web:\", depending on the app type. For Chrome apps, the app id can be found on the Chrome Web Store, example: \"chrome:aapbdbdomjkkjkaonfhkkikfgjllcleb\". For Web apps, the app id is simply the URL, example: \"web:https://translate.google.com\".",
                    "name": "Id of the app prefixed with one of either \"chrome:\" or \"web:\", depending on the app type. For Chrome apps, the app id can be found on the Chrome Web Store, example: \"chrome:aapbdbdomjkkjkaonfhkkikfgjllcleb\". For Web apps, the app id is simply the URL, example: \"web:https://translate.google.com\".",
                    "fieldConstraints": {}
                }
            ],
            "notices": [
                {
                    "field": "enableSystemLogUpload",
                    "noticeValue": "true",
                    "noticeMessage": "In order to enable System Log Upload functionality, you must first inform the users of managed kiosk devices that their activity may be monitored and data may be inadvertently captured and shared. Without notification to your users, you are in violation of the terms of your agreement with Google.",
                    "acknowledgementRequired": "True"
                }
            ],
            "schemaName": "chrome.devices.test.appsconfig.AutoLaunchApp",
            "validTargetResources": [
                "ORG_UNIT"
            ],
            "policyApiLifecycle": {
                "policyApiLifecycleStage": "API_CURRENT"
            },
            "categoryTitle": "Kiosk apps config"
        },
        {
            "name": "customers/test/policySchemas/chrome.users.appsconfig.AndroidAppsEnabled",
            "policyDescription": "Android apps on Chrome devices.",
            "definition": {
                "messageType": [
                    {
                        "name": "AndroidAppsEnabled",
                        "field": [
                            {
                                "name": "arcEnabled",
                                "number": "1",
                                "label": "LABEL_OPTIONAL",
                                "type": "TYPE_BOOL"
                            }
                        ]
                    }
                ]
            },
            "fieldDescriptions": [
                {
                    "field": "arcEnabled",
                    "description": "Whether to allow or disallow to install Android apps for managed ChromeOS users.",
                    "knownValueDescriptions": [
                        {
                            "value": "true",
                            "description": "Allow users to install Android apps on ChromeOS devices."
                        }
                    ],
                    "defaultValue": "True",
                    "name": "Whether to allow or disallow to install Android apps for managed ChromeOS users.",
                    "fieldConstraints": {}
                }
            ],
            "notices": [
                {
                    "field": "arcEnabled",
                    "noticeValue": "true",
                    "noticeMessage": "Before you set this to true you must accept the Managed Google Play Agreement by going to https://play.google.com/work/termsofservice with a super administrator account."
                },
            ],
            "supportUri": "https://support.google.com/chrome/a/answer/9039146?hl=en#androidapps",
            "schemaName": "chrome.users.appsconfig.AndroidAppsEnabled",
            "validTargetResources": [
                "ORG_UNIT"
            ],
            "policyApiLifecycle": {
                "policyApiLifecycleStage": "API_CURRENT"
            },
            "categoryTitle": "Additional app settings",
            "supportedPlatforms": [
                "CHROME_OS"
            ]
        }
    ]
    }
}

Human Readable Output

Policy Schemas List

Name Policy Description Schema Name
customers/test/policySchemas/chrome.devices.test.appsconfig.AutoLaunchApp Allows setting of the auto-launch app. chrome.devices.test.appsconfig.AutoLaunchApp
customers/test/policySchemas/chrome.users.appsconfig.AndroidAppsEnabled Android apps on Chrome devices. chrome.devices.test.appsconfig.AutoLaunchApp

gsuite-policy-resolve


Gets the resolved policy values for a list of policies that match a search query.

Base Command

gsuite-policy-resolve

Required Permissions

https://www.googleapis.com/auth/chrome.management.policy

Input

Argument Name Description Required
customer_id ID of the Google Workspace account or literal “my_customer” for the customer associated with the request. Optional
policy_schema_filter Specify a schema name to view a particular schema, for example: chrome.users.ShowLogoutButton. See https://developers.google.com/chrome/policy/guides/policy-schemas for details on schema namespaces. Required
target_type Type of target. Possible values are: Group, OrgUnit. Required
target_resource The target resource on which this policy is applied. The following resources are supported: Organizational Unit (“orgunits/{orgunit_id}”) or Group (“groups/{groupId}”). Required
additional_target_keys Map (key: string, value: string) containing the additional target key name and value pairs used to further identify the target of the policy. Optional
page_size The maximum number of policy schemas to return. Defaults to 100 and has a maximum of 1000. Optional
page_token Page token. Optional
limit Limit of policies returned. Optional

Context Output

Path Type Description
GSuite.Policy.nextPageToken String The token of the next page.
GSuite.Policy.policyObject.targetKey.targetResource String Policy target key target resource.
GSuite.Policy.policyObject.targetKey.additionalTargetKeys String Policy target key additional target keys.
GSuite.Policy.policyObject.value.policySchema String Policy schema value.
GSuite.Policy.policyObject.value.value String Policy value.
GSuite.Policy.policyObject.sourceKey.targetResource String Policy source key target resource.
GSuite.Policy.policyObject.addedSourceKey.targetResource String Policy added source key target resource.

Command Example

!gsuite-policy-resolve customer_id=test policy_schema_filter=chrome.users.apps.InstallType target_resource=1111111 target_type=OrgUnit

Context Example

{
    "GSuite": {
        "Policy": [
            {
                "targetKey": 
                {
                    "targetResource": "orgunits/1111111", 
                    "additionalTargetKeys": 
                    {
                        "app_id": "chrome:aaaaaaaaaaaa"
                    }
                }, 
                "value": 
                {
                    "policySchema": "chrome.users.apps.InstallType", 
                    "value": 
                    {
                        "appInstallType": "BLOCKED"
                    }
                }, 
                "sourceKey": 
                {
                    "targetResource": "orgunits/1111111"
                }, 
                "addedSourceKey": 
                {
                    "targetResource": "orgunits/1111111"
                }
            }
        ]
    }
}

Human Readable Output

Resolved Policies

Target Resource Additional Target Keys Policy Schema
orgunits/1111111 app_id: chrome:aaaaaaaaaaaa chrome.users.apps.InstallType

gsuite-policy-groups-delete


Delete multiple policy values that are applied to a specific group. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in additionalTargetKeyNames, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.

Base Command

gsuite-policy-groups-delete

Required Permissions

https://www.googleapis.com/auth/chrome.management.policy

Input

Argument Name Description Required
customer_id ID of the Google Workspace account or literal “my_customer” for the customer associated with the request. Optional
policy_raw_json String as JSON representation of the DeleteGroupPolicyRequest
{
“policyTargetKey”: {
object (PolicyTargetKey)
},
“policySchema”: string
}.
Optional
policy_field_json_entry_id Entry Id of the file that contains JSON representation of the DeleteGroupPolicyRequest
{
“policyTargetKey”: {
object (PolicyTargetKey)
},
“policySchema”: string
}.
Required
target_resource The target resource on which this policy is applied. The following resources are supported:

Organizational Unit (“orgunits/{orgunit_id}”)
Group (“groups/{groupId}”).
Optional
additional_target_keys Map containing the additional target key name and value pairs used to further identify the target of the policy.

An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
Optional
policy_schema The fully qualified name of the policy schema that is being inherited. Optional

Context Output

There is no context output for this command.

Command Example

!gsuite-policy-groups-delete customer_id=test target_type=Group target_resource=1111 policy_schema=chrome.users.apps.InstallType additional_target_keys=""\"app_id\":\"chrome:111111\""

Human Readable Output

Policy has been deleted for the customer CUSTOMER_ID.

Configuration parameters

  • user_service_account_json — User's Service Account JSON
  • admin_email_creds — Admin Email
  • admin_email — Admin Email
  • customer_id — Customer ID
  • insecure — Trust any certificate (not secure)
  • proxy — Use system proxy settings

Commands (28)

  • gsuite-chromebrowserdevice-list

    Retrieve all Chrome browser devices for an account or a specific Chrome browser device.

  • gsuite-chromebrowserdevice-move-ou

    To move Chrome browser devices assigned to an account from one organization unit to another.

  • gsuite-chromeosdevice-action

    Executes an action that affects a ChromeOS device. This includes de-provisioning, disabling, and re-enabling devices.

  • gsuite-chromeosdevice-list

    Retrieves a paginated list of company-owned ChromeOS devices.

  • gsuite-custom-user-schema-create

    Creates a custom user schema to add custom fields to user profiles. Note: field_raw_json has higher precedence when both field_raw_json and field_json_entry_id are provided.

  • gsuite-custom-user-schema-update

    Updates a custom user schema. Note: field_raw_json has higher precedence when both field_raw_json and field_json_entry_id are provided.

  • gsuite-datatransfer-list

    Lists the transfers for a customer by source user, destination user, or status.

  • gsuite-datatransfer-request-create

    Inserts a data transfer request. Note: If all three applications_raw_json, applications_raw_json_entry_id and application_id are provided the higher precedence will be in order of applications_raw_json, applications_raw_json_entry_id, and application_id respectively.

  • gsuite-group-create

    Creates a group with a group name and its description.

  • gsuite-group-get

    Retreive a group's details given a group key.

  • gsuite-mobile-delete

    Removes a mobile device. Note that this does not break the device's sync, it simply removes it from the list of devices connected to the domain. If the device still has a valid login/authentication, it will be added back on it's next successful sync.

  • gsuite-mobile-update

    Takes an action that affects a mobile device. For example, remotely wiping a device.

  • gsuite-mobiledevice-list

    Retrieves a paginated list that includes company-owned mobile devices.

  • gsuite-policy-groups-delete

    Delete multiple policy values that are applied to a specific group. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in additionalTargetKeyNames, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.

  • gsuite-policy-modify

    Modifies multiple policy values that are applied to a specific group. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in additionalTargetKeyNames, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.

  • gsuite-policy-resolve

    Gets the resolved policy values for a list of policies that match a search query.

  • gsuite-policy-schemas-list

    Gets a list of policy schemas that match a specified filter value for a given customer.

  • gsuite-role-assignment-create

    Creates a role assignment.

  • gsuite-role-assignment-list

    Retrieves a paginated list of all role assignments.

  • gsuite-role-create

    Creates a new role.

  • gsuite-token-revoke

    Delete all access tokens issued by a user for an application.

  • gsuite-user-alias-add

    Adds an alias.

  • gsuite-user-create

    Creates a user.

  • gsuite-user-delete

    Deletes a user.

  • gsuite-user-get

    Retrieve a user's details given a user key.

  • gsuite-user-reset-password

    Indicates if the user is forced to change their password at next login.

  • gsuite-user-signout

    Signs a user out of all web and device sessions and reset their sign-in cookies.

  • gsuite-user-update

    Updates a user.

category: IT Services
provider: Google
commonfields:
  id: GSuiteAdmin
  version: -1
configuration:
- display: User's Service Account JSON
  name: user_service_account_json
  type: 4
  hidden: true
  required: false
- display: Admin Email
  name: admin_email_creds
  type: 9
  displaypassword: User's Service Account JSON
  required: false
- display: Admin Email
  name: admin_email
  type: 0
  additionalinfo: An admin email is required for the Test validation to run. If not configured, then each command can receive an optional admin_email argument.
  hidden: true
  required: false
- display: Customer ID
  name: customer_id
  type: 0
  additionalinfo: A unique identifier of the customer's Google account.
  required: false
- display: Trust any certificate (not secure)
  name: insecure
  type: 8
  required: false
- display: Use system proxy settings
  name: proxy
  type: 8
  required: false
description: G Suite or Google Workspace Admin is an integration to perform an action on IT infrastructure, create users, update settings, and more administrative tasks.
display: Google Workspace Admin
name: GSuiteAdmin
script:
  commands:
  - arguments:
    - description: The unique ID of the customer's Google Workspace Admin account.
      name: customer_id
    - description: Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    - description: Whether to show all metadata fields, or only the basic metadata fields (e.g., deviceId, model, type, and status). Default is FULL.
      name: projection
      auto: PREDEFINED
      predefined:
      - BASIC
      - FULL
    - name: query
      description: Search string using the format given at https://developers.google.com/admin-sdk/directory/v1/search-operators.
    - auto: PREDEFINED
      name: order_by
      description: Device property to use for sorting results. Default is STATUS.
      predefined:
      - DEVICE_ID
      - EMAIL
      - LAST_SYNC
      - MODEL
      - NAME
      - OS
      - STATUS
      - TYPE
    - auto: PREDEFINED
      name: sort_order
      description: Whether to return results in ascending or descending order. Must be used with the order_by parameter. Default is ASCENDING.
      predefined:
      - ASCENDING
      - DESCENDING
    - name: limit
      description: The maximum number of records to return from the collection. Default is 50.
    - name: page_token
      description: The token of the page.
    - name: page_size
      description: The number of requested results per page. Default is 50. Maximum allowed value is 100.
    description: Retrieves a paginated list that includes company-owned mobile devices.
    name: gsuite-mobiledevice-list
    outputs:
    - type: String
      contextPath: GSuite.MobileDevices.PageToken.NextPageToken
      description: The token of the next page.
    - type: Object
      contextPath: GSuite.MobileDevices.MobileListObjects
      description: A list of mobile device objects.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.kind
      description: The type of the API resource.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.etag
      description: ETag of the resource.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.resourceId
      description: The unique ID the API service uses to identify the mobile device.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.deviceId
      description: The serial number for a Google Sync mobile device. For Android and iOS devices, this is a software-generated unique identifier.
    - type: List
      contextPath: GSuite.MobileDevices.MobileListObjects.name
      description: A list of the owner's usernames.
    - type: List
      contextPath: GSuite.MobileDevices.MobileListObjects.email
      description: A list of the owner's email addresses.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.model
      description: The mobile device's model name.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.os
      description: The mobile device's operating system.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.type
      description: The type of mobile device.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.status
      description: The mobile device's status.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.hardwareId
      description: The IMEI/MEID unique identifier for Android hardware.
    - type: Date
      contextPath: GSuite.MobileDevices.MobileListObjects.firstSync
      description: The date and time the mobile device was initially synchronized with the policy settings in the Admin console.
    - type: Date
      contextPath: GSuite.MobileDevices.MobileListObjects.lastSync
      description: The date and time the mobile device was last synchronized with the policy settings in the Admin console.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.userAgent
      description: Gives information about the mobile device such as the operating system version.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.serialNumber
      description: The mobile device's serial number.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.imei
      description: The mobile device's IMEI number.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.meid
      description: The mobile device's MEID number.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.wifiMacAddress
      description: The mobile device's MAC address on Wi-Fi networks.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.networkOperator
      description: Mobile device mobile or network operator.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.defaultLanguage
      description: The default locale used on the mobile device.
    - type: Boolean
      contextPath: GSuite.MobileDevices.MobileListObjects.managedAccountIsOnOwnerProfile
      description: Boolean indicating if this account is on the owner/primary profile.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.deviceCompromisedStatus
      description: The compromised device status.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.buildNumber
      description: The mobile device's operating system build number.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.kernelVersion
      description: The mobile device's kernel version.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.basebandVersion
      description: The mobile device's baseband version.
    - type: Boolean
      contextPath: GSuite.MobileDevices.MobileListObjects.unknownSourcesStatus
      description: Unknown sources enabled or disabled on the mobile device.
    - type: Boolean
      contextPath: GSuite.MobileDevices.MobileListObjects.adbStatus
      description: Whether adb (USB debugging) is enabled on the mobile device.
    - type: Boolean
      contextPath: GSuite.MobileDevices.MobileListObjects.developerOptionsStatus
      description: Whether developer options are enabled on the mobile device.
    - type: List
      contextPath: GSuite.MobileDevices.MobileListObjects.otherAccountsInfo
      description: A list of accounts added on the device.
    - type: Boolean
      contextPath: GSuite.MobileDevices.MobileListObjects.supportsWorkProfile
      description: Work profile supported on the mobile device.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.manufacturer
      description: Mobile device manufacturer.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.releaseVersion
      description: Mobile device release version.
    - type: Date
      contextPath: GSuite.MobileDevices.MobileListObjects.securityPatchLevel
      description: Mobile device security patch level.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.brand
      description: Mobile device brand.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.bootloaderVersion
      description: Mobile device bootloader version.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.hardware
      description: Mobile device hardware.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.encryptionStatus
      description: Mobile device encryption status.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.devicePasswordStatus
      description: Mobile device password status.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.privilege
      description: DM agent permission.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.applications.packageName
      description: The application's package name.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.applications.displayName
      description: The application's display name.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.applications.versionName
      description: The application's version name.
    - type: String
      contextPath: GSuite.MobileDevices.MobileListObjects.applications.versionCode
      description: The application's version code.
    - type: List
      contextPath: GSuite.MobileDevices.MobileListObjects.applications.permission
      description: The list of permissions of this application.
  - arguments:
    - description: The unique ID of the customer's Google Workspace Admin account.
      name: customer_id
    - description: Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    - description: Whether to show all metadata fields, or only the basic metadata fields (e.g., deviceId, serialNumber, status, and user).
      name: projection
      auto: PREDEFINED
      predefined:
      - BASIC
      - FULL
    - name: query
      description: "Search string in the format given at https://developers.google.com/admin-sdk/directory/v1/list-query-operators."
    - auto: PREDEFINED
      name: order_by
      description: Device property to use for sorting results.
      predefined:
      - ANNOTATED_LOCATION
      - ANNOTATED_USER
      - LAST_SYNC
      - NOTES
      - SERIAL_NUMBER
      - STATUS
    - auto: PREDEFINED
      name: sort_order
      description: Whether to return results in ascending or descending order. Must be used with the order_by parameter.
      predefined:
      - ASCENDING
      - DESCENDING
    - name: org_unit_path
      description: The full path of the organizational unit (without the leading /) or its unique ID.
    - auto: PREDEFINED
      name: include_child_org_units
      description: Whether to return devices from all child organizational units. If this is set to true, 'org_unit_path' must be provided.
      predefined:
      - yes
      - no
    - name: limit
      description: The maximum number of records to return from the collection. Default is 50.
    - name: page
      description: The page number.
    - name: page_size
      description: The number of requested results per page. Default is 50. Maximum allowed value is 100.
    description: Retrieves a paginated list of company-owned ChromeOS devices.
    name: gsuite-chromeosdevice-list
    outputs:
    - contextPath: GSuite.ChromeOSDevices.PageToken.NextPageToken
      description: The token of the next page.
      type: String
    - contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects
      description: A list of ChromeOS device objects.
      type: List
    - contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.deviceId
      description: The unique ID of the ChromeOS device.
      type: String
    - contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.serialNumber
      description: The ChromeOS device serial number entered when the device was enabled.
      type: String
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.status
      description: Status of the ChromeOS device.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.lastSync
      description: The date and time the ChromeOS device was last synchronized with the policy settings in the Admin console.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.supportEndDate
      description: The final date the ChromeOS device will be supported.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.annotatedUser
      description: The user of the ChromeOS device as noted by the administrator.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.annotatedLocation
      description: The address or location of the ChromeOS device as noted by the administrator.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.notes
      description: Notes about this ChromeOS device added by the administrator.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.model
      description: The ChromeOS device's model information.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.meid
      description: The Mobile Equipment Identifier (MEID) or the International Mobile Equipment Identity (IMEI) for the 3G mobile card in a ChromeOS device.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.orderNumber
      description: The ChromeOS device's order number.
    - type: Boolean
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.willAutoRenew
      description: Determines if the ChromeOS device will auto renew its support after the support end date.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.osVersion
      description: The ChromeOS device's operating system version.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.platformVersion
      description: The ChromeOS device's platform version.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.firmwareVersion
      description: The ChromeOS device's firmware version.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.macAddress
      description: The ChromeOS device's wireless MAC address.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.bootMode
      description: The boot mode for the ChromeOS device.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.lastEnrollmentTime
      description: The date and time the ChromeOS device was last enrolled.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.kind
      description: The type of resource.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.recentUsers
      description: A list of recent ChromeOS device users, in descending order, by last login time.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.recentUsers.type
      description: The type of the user.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.recentUsers.email
      description: The user's email address.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.activeTimeRanges
      description: A list of active time ranges.
    - type: Integer
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.activeTimeRanges.activeTime
      description: Duration of usage in milliseconds.
    - type: Integer
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.activeTimeRanges.date
      description: Date of usage.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.ethernetMacAddress
      description: The ChromeOS device's MAC address on the ethernet network interface.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.annotatedAssetId
      description: The asset identifier as noted by an administrator or specified during enrollment.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.etag
      description: ETag of the resource.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.diskVolumeReports
      description: Reports of disk space and other info about mounted/connected volumes.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.diskVolumeReports.volumeInfo
      description: Disk volumes.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.diskVolumeReports.volumeInfo.volumeId
      description: Volume ID.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.diskVolumeReports.volumeInfo.storageTotal
      description: Total disk space [in bytes].
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.diskVolumeReports.volumeInfo.storageFree
      description: Free disk space [in bytes].
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.systemRamTotal
      description: Total RAM on the ChromeOS device in bytes.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuStatusReports
      description: Reports of CPU utilization and temperature.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuStatusReports.reportTime
      description: Date and time the report was received.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuStatusReports.cpuUtilizationPercentageInfo
      description: The CPU utilization percentage.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuStatusReports.cpuTemperatureInfo
      description: A list of CPU temperature samples.
    - type: Integer
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuStatusReports.cpuTemperatureInfo.temperature
      description: Temperature in Celsius degrees.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuStatusReports.cpuTemperatureInfo.label
      description: CPU label.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo
      description: Information regarding CPU specs in the device.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.model
      description: The CPU model name.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.architecture
      description: The CPU architecture.
    - type: Integer
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.maxClockSpeedKhz
      description: The maximum CPU clock speed in kHz.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus
      description: Information for the logical CPUs.
    - type: Integer
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus.maxScalingFrequencyKhz
      description: Maximum frequency the CPU is allowed to run at, by policy.
    - type: Integer
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus.currentScalingFrequencyKhz
      description: Current frequency the CPU is running at.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus.idleDuration
      description: Idle time since last boot.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus.cStates
      description: The power consumption state of the CPU. For more information, see the documentation published by the CPU maker.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus.cStates.displayName
      description: Name of the state.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.cpuInfo.logicalCpus.cStates.sessionDuration
      description: Time spent in the state since the last reboot.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.deviceFiles
      description: A list of device files to download.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.deviceFiles.name
      description: File name.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.deviceFiles.type
      description: File type.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.deviceFiles.downloadUrl
      description: File download URL.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.deviceFiles.createTime
      description: Date and time the file was created.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.systemRamFreeReports
      description: Reports of amounts of available RAM memory.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.systemRamFreeReports.reportTime
      description: Date and time the report was received.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.systemRamFreeReports.systemRamFreeInfo
      description: Report of free RAM memory.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.lastKnownNetwork
      description: Contains last known network.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.lastKnownNetwork.ipAddress
      description: The IP address.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.lastKnownNetwork.wanIpAddress
      description: The WAN IP address.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.autoUpdateExpiration
      description: The timestamp after which the device will stop receiving Chrome updates or support.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.ethernetMacAddress0
      description: MAC address used by the Chromebook's internal ethernet port, and for onboard network (ethernet) interface. The format is twelve (12) hexadecimal digits without any delimiter (uppercase letters). This is only relevant for some devices.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.dockMacAddress
      description: Built-in MAC address for the docking station that the device connected to. Factory sets Media Access Control address (MAC address) assigned for use by a dock. It is reserved specifically for MAC pass through device policy. The format is twelve (12) hexadecimal digits without any delimiter (uppercase letters). This is only relevant for some devices.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.manufactureDate
      description: The date the device was manufactured in yyyy-mm-dd format.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.orgUnitPath
      description: The full parent path with the organizational unit's name associated with the device. Path names are case insensitive. If the parent organizational unit is the top-level organization, it is represented as a forward slash, /.
    - type: Object
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo
      description: Trusted Platform Module (TPM).
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo.family
      description: TPM family, using the TPM 2.0 style encoding.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo.specLevel
      description: TPM specification level.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo.manufacturer
      description: TPM manufacturer code.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo.tpmModel
      description: TPM model number.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo.firmwareVersion
      description: TPM firmware version.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.tpmVersionInfo.vendorSpecific
      description: Vendor-specific information such as vendor ID.
    - type: List
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.screenshotFiles
      description: A list of screenshot files to download.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.screenshotFiles.name
      description: File name.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.screenshotFiles.type
      description: File type.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.screenshotFiles.downloadUrl
      description: File download URL.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.screenshotFiles.createTime
      description: Date and time the file was created.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.orgUnitId
      description: The unique ID of the organizational unit. orgUnitPath is the human readable version of orgUnitId. While orgUnitPath may change by renaming an organizational unit within the path, orgUnitId is unchangeable for one organizational unit.
    - type: Object
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus
      description: The status of the operating system updates for the device.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus.state
      description: The update state of an operating system update.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus.targetOsVersion
      description: New platform version of the operating system image being downloaded and applied.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus.targetKioskAppVersion
      description: New required platform version from the pending updated kiosk app.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus.updateTime
      description: Date and time of the last successful operating system update.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus.updateCheckTime
      description: Date and time of the last update check.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.osUpdateStatus.rebootTime
      description: Date and time of the last reboot.
    - type: String
      contextPath: GSuite.ChromeOSDevices.ChromeOSListObjects.firstEnrollmentTime
      description: Date and time for the first time the device was enrolled.
  - arguments:
    - description: The unique ID of the customer's Google Workspace Admin account.
      name: customer_id
    - description: Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    - description: The unique ID of the device.
      name: resource_id
      required: true
    - description: The action to be performed on the ChromeOS device.
      name: action
      required: true
      auto: PREDEFINED
      predefined:
      - deprovision
      - disable
      - reenable
      - pre_provisioned_disable
      - pre_provisioned_reenable
    - description: Reason for deprovision. This field is required only when the action used is deprovision.
      name: deprovision_reason
      auto: PREDEFINED
      predefined:
      - different_model_replacement
      - retiring_device
      - same_model_replacement
      - upgrade_transfer
    description: Executes an action that affects a ChromeOS device. This includes de-provisioning, disabling, and re-enabling devices.
    name: gsuite-chromeosdevice-action
  - arguments:
    - description: The unique ID of the customer's G Suite account.
      name: customer_id
    - description: The unique ID used to identify the mobile device.
      name: resource_id
      required: true
    - description: |-
        The action to be performed on the device.

        Available Options:
        admin_account_wipe - Remotely wipes only G Suite data from the device.

        admin_remote_wipe - Remotely wipes all data on the device.

        approve - Approves the device.

        block - Blocks access to G Suite data on the device.

        cancel_remote_wipe_then_activate - Cancels a remote wipe of the device and then reactivates it.

        cancel_remote_wipe_then_block - Cancels a remote wipe of the device and then blocks it.
      name: action
      required: true
      auto: PREDEFINED
      predefined:
      - admin_account_wipe
      - admin_remote_wipe
      - approve
      - block
      - cancel_remote_wipe_then_activate
      - cancel_remote_wipe_then_block
    - description: Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    description: Takes an action that affects a mobile device. For example, remotely wiping a device.
    name: gsuite-mobile-update
  - arguments:
    - description: The unique ID of the customer's G Suite account.
      name: customer_id
    - description: The unique ID used to identify the mobile device.
      name: resource_id
      required: true
    - description: Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    description: Removes a mobile device. Note that this does not break the device's sync, it simply removes it from the list of devices connected to the domain. If the device still has a valid login/authentication, it will be added back on it's next successful sync.
    name: gsuite-mobile-delete
  - arguments:
    - description: Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
      name: user_key
      required: true
    - description: The alias email address.
      name: alias
      required: true
    - description: Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    description: Adds an alias.
    name: gsuite-user-alias-add
    outputs:
    - contextPath: GSuite.UserAlias.kind
      description: The type of the API resource.
      type: String
    - contextPath: GSuite.UserAlias.id
      description: The unique ID for the user.
      type: String
    - contextPath: GSuite.UserAlias.etag
      description: ETag of the resource.
      type: String
    - contextPath: GSuite.UserAlias.alias
      description: The alias email address.
      type: String
  - arguments:
    - description: The user's first name.
      name: first_name
      required: true
    - description: The user's last name.
      name: last_name
      required: true
    - description: Stores the password for the user account. A password can contain any combination of ASCII characters. A minimum of 8 characters is required. The maximum length is 100 characters. The password will be sent in MD5 hash format.
      name: password
      required: true
    - description: The user's primary email address. The primary_email must be unique and cannot be an alias of another user.
      name: primary_email
      required: true
    - description: User's Country.
      name: country
    - auto: PREDEFINED
      description: The address type.
      name: address_type
      predefined:
      - home
      - other
      - work
    - description: The ZIP or postal code, if applicable.
      name: postal_code
    - auto: PREDEFINED
      description: Set to true, If this is the user's primary address.
      name: is_address_primary
      predefined:
      - 'true'
      - 'false'
    - description: For extended addresses, such as an address that includes a sub-region.
      name: extended_address
    - description: The abbreviated province or state.
      name: region
    - description: The street address, such as 1600 Amphitheatre Parkway. Whitespace within the string is ignored; however, newlines are significant.
      name: street_address
    - description: The user's secondary email address.
      name: secondary_email_address
    - auto: PREDEFINED
      description: The type of the secondary email account.
      name: secondary_email_type
      predefined:
      - home
      - other
      - work
    - auto: PREDEFINED
      description: User's gender.
      name: gender
      predefined:
      - female
      - male
      - other
      - unknown
    - auto: PREDEFINED
      description: If true, the user's IP address is on allow list.
      name: is_ip_white_listed
      predefined:
      - 'true'
      - 'false'
    - auto: PREDEFINED
      description: Content type of note, either plain text or HTML. If not provided, considered as plain text.
      name: notes_content_type
      predefined:
      - text_plain
      - text_html
    - description: Contents of notes.
      name: notes_value
    - description: A human-readable phone number. It may be in any telephone number format.
      name: phone_number
    - auto: PREDEFINED
      description: The type of phone number.
      name: phone_number_type
      predefined:
      - assistant
      - callback
      - car
      - company_main
      - grand_central
      - home
      - home_fax
      - isdn
      - main
      - mobile
      - other
      - other_fax
      - pager
      - radio
      - telex
      - tty_tdd
      - work
      - work_fax
      - work_mobile
      - work_pager
    - auto: PREDEFINED
      description: Indicates if this is the user's primary phone number. A user may only have one primary phone number.
      name: is_phone_number_primary
      predefined:
      - 'true'
      - 'false'
    - description: Recovery email of the user.
      name: recovery_email
    - description: 'Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: +16506661212.'
      name: recovery_phone
    - auto: PREDEFINED
      description: Indicates if the user is suspended.
      name: suspended
      predefined:
      - 'true'
      - 'false'
    - description: Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    description: Creates a user.
    name: gsuite-user-create
    outputs:
    - contextPath: GSuite.User.id
      description: The unique ID for the user.
      type: String
    - contextPath: GSuite.User.primaryEmail
      description: The user's primary email address.
      type: String
    - contextPath: GSuite.User.firstName
      description: The user's first name.
      type: String
    - contextPath: GSuite.User.lastName
      description: The user's last name.
      type: String
    - contextPath: GSuite.User.customerId
      description: The unique ID for the customer's G Suite account.
      type: String
    - contextPath: GSuite.User.gender
      description: Gender.
      type: String
    - contextPath: GSuite.User.suspended
      description: Indicates if the user is suspended.
      type: Boolean
    - contextPath: GSuite.User.notesValue
      description: Contents of notes.
      type: String
    - contextPath: GSuite.User.notesContentType
      description: Content type of notes.
      type: String
    - contextPath: GSuite.User.isAdmin
      description: Indicates a user with super administrator privileges.
      type: Boolean
    - contextPath: GSuite.User.creationTime
      description: The time the user's account was created.
      type: Date
    - contextPath: GSuite.User.phones.value
      description: A human-readable phone number. It may be in any telephone number format.
      type: String
    - contextPath: GSuite.User.phones.type
      description: The type of phone number.
      type: String
    - contextPath: GSuite.User.phones.primary
      description: Indicates if this is the user's primary phone number.
      type: Boolean
    - contextPath: GSuite.User.addresses.type
      description: The address type.
      type: String
    - contextPath: GSuite.User.addresses.country
      description: Country.
      type: String
    - contextPath: GSuite.User.addresses.postalCode
      description: The ZIP or postal code.
      type: String
    - contextPath: GSuite.User.addresses.region
      description: The abbreviated province or state.
      type: String
    - contextPath: GSuite.User.addresses.streetAddress
      description: The street address.
      type: String
    - contextPath: GSuite.User.addresses.extendedAddress
      description: For extended addresses, such as an  address that includes a sub-region.
      type: String
    - contextPath: GSuite.User.addresses.primary
      description: If this is the user's primary address.
      type: Boolean
    - contextPath: GSuite.User.emails.address
      description: The user's secondary email.
      type: String
    - contextPath: GSuite.User.emails.type
      description: The secondary email type.
      type: String
    - contextPath: GSuite.User.ipWhitelisted
      description: If true, the user's IP address is addded to allow list.
      type: Boolean
    - contextPath: GSuite.User.recoveryEmail
      description: Recovery email of the user.
      type: String
    - contextPath: GSuite.User.isDelegatedAdmin
      description: Indicates if the user is a delegated administrator.
      type: Boolean
    - contextPath: GSuite.User.recoveryPhone
      description: Recovery phone of the user.
      type: String
    - contextPath: GSuite.User.orgUnitPath
      description: 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 (/).
      type: String
    - contextPath: GSuite.User.isMailboxSetup
      description: Indicates if the user's Google mailbox is created.
      type: Boolean
    - contextPath: GSuite.User.kind
      description: The type of the API resource.
      type: Boolean
    - contextPath: GSuite.User.etag
      description: ETag of the resource.
      type: Boolean
    - contextPath: GSuite.User.hashFunction
      description: Stores the hash format of the password property.
      type: String
  - arguments:
    - description: The group's email address.
      name: group_email
      required: true
    - description: The group's display name.
      name: group_name
    - description: An extended description to help users determine the purpose of a group.
      name: group_description
    - description: Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    description: Creates a group with a group name and its description.
    name: gsuite-group-create
    outputs:
    - contextPath: GSuite.Group.kind
      description: The type of the API resource.
      type: String
    - contextPath: GSuite.Group.id
      description: The unique ID of a group.
      type: String
    - contextPath: GSuite.Group.etag
      description: ETag of the resource.
      type: String
    - contextPath: GSuite.Group.email
      description: The group's email address.
      type: String
    - contextPath: GSuite.Group.name
      description: The group's display name.
      type: String
    - contextPath: GSuite.Group.directMembersCount
      description: The number of users that are direct members of the group.
      type: String
    - contextPath: GSuite.Group.description
      description: An extended description to help users determine the purpose of a group.
      type: String
    - contextPath: GSuite.Group.adminCreated
      description: Value is true if this group was created by an administrator rather than a user.
      type: Boolean
    - contextPath: GSuite.Group.aliases
      description: List of a group's alias email addresses.
      type: String
    - contextPath: GSuite.Group.nonEditableAliases
      description: List of the group's non-editable alias email addresses that are outside of the account's primary domain or subdomains.
      type: String
  - arguments:
    - description: Immutable ID of the G Suite account.
      name: customer_id
    - description: Immutable ID of a role. If included, it returns only role assignments containing this role ID.
      name: role_id
    - description: The user's primary email address, alias email address, or unique user ID. If included in the request, returns role assignments only for this user.
      name: user_key
    - description: Token to specify the next page in the list.
      name: page_token
    - description: Maximum number of results to return. Acceptable values are 1 to 200, inclusive.
      name: max_results
    - description: Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    description: Retrieves a paginated list of all role assignments.
    name: gsuite-role-assignment-list
    outputs:
    - contextPath: GSuite.RoleAssignment.kind
      description: The type of the API resource.
      type: String
    - contextPath: GSuite.RoleAssignment.etag
      description: ETag of the resource.
      type: String
    - contextPath: GSuite.RoleAssignment.roleAssignmentId
      description: ID of this role assignment.
      type: Number
    - contextPath: GSuite.RoleAssignment.roleId
      description: The ID of the role that is assigned.
      type: Number
    - contextPath: GSuite.RoleAssignment.assignedTo
      description: The unique ID of the user this role is assigned to.
      type: String
    - contextPath: GSuite.RoleAssignment.scopeType
      description: The scope in which this role is assigned.
      type: String
    - contextPath: GSuite.RoleAssignment.orgUnitId
      description: If the role is restricted to an organization unit, this contains the ID of the organization unit to which the exercise of this role is restricted to.
      type: String
    - contextPath: GSuite.PageToken.RoleAssignment.nextPageToken
      description: Token to specify the next page in the list.
      type: String
  - arguments:
    - description: Immutable ID of the G Suite account.
      name: customer_id
    - description: The ID of the role to be assigned to the user.
      name: role_id
      required: true
    - description: The unique ID of the user this role is assigned to.
      name: assigned_to
      required: true
    - description: The scope in which this role is assigned.
      name: scope_type
      required: true
      auto: PREDEFINED
      predefined:
      - CUSTOMER
      - ORG_UNIT
    - description: |-
        If the role is restricted to an organization unit, this contains the ID for the organization unit the exercise of this role is restricted to.
      name: org_unit_id
    - description: |-
        Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    description: Creates a role assignment.
    name: gsuite-role-assignment-create
    outputs:
    - contextPath: GSuite.RoleAssignment.kind
      description: The type of the API resource.
      type: String
    - contextPath: GSuite.RoleAssignment.etag
      description: ETag of the resource.
      type: String
    - contextPath: GSuite.RoleAssignment.roleAssignmentId
      description: ID of this role assignment.
      type: Number
    - contextPath: GSuite.RoleAssignment.roleId
      description: The ID of the role that is assigned.
      type: Number
    - contextPath: GSuite.RoleAssignment.assignedTo
      description: The unique ID of the user this role is assigned to.
      type: String
    - contextPath: GSuite.RoleAssignment.scopeType
      description: The scope in which this role is assigned.
      type: String
    - contextPath: GSuite.RoleAssignment.orgUnitId
      description: If the role is restricted to an organization unit, this contains the ID of the organization unit to which the exercise of this role is restricted to.
      type: String
  - arguments:
    - description: Immutable ID of the G Suite account.
      name: customer_id
    - description: Name of the role.
      name: role_name
      required: true
    - description: The set of privileges that are granted to this role. Comma-separated list of privilege names and service ids of the form "PrivilegeName1:ServiceId1,PrivilegeName2:ServiceId2".
      name: role_privileges
      required: true
    - description: A short description of the role.
      name: role_description
    - description: Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    description: Creates a new role.
    name: gsuite-role-create
    outputs:
    - contextPath: GSuite.Role.kind
      description: The type of the API resource. This is always admin#directory#role.
      type: String
    - contextPath: GSuite.Role.etag
      description: ETag of the resource.
      type: String
    - contextPath: GSuite.Role.roleId
      description: ID of the role.
      type: Number
    - contextPath: GSuite.Role.roleName
      description: Name of the role.
      type: String
    - contextPath: GSuite.Role.roleDescription
      description: A short description of the role.
      type: String
    - contextPath: GSuite.Role.rolePrivileges.privilegeName
      description: The name of the privilege.
      type: String
    - contextPath: GSuite.Role.rolePrivileges.serviceId
      description: The obfuscated ID of the service this privilege is for.
      type: String
    - contextPath: GSuite.Role.isSystemRole
      description: Whether this is a pre-defined system role.
      type: Boolean
    - contextPath: GSuite.Role.isSuperAdminRole
      description: Whether the role is a super admin role.
      type: Boolean
  - arguments:
    - description: The Client ID of the application the token is issued to.
      name: client_id
      required: true
    - description: Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
      name: user_key
      required: true
    - description: Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    description: |-
      Delete all access tokens issued by a user for an application.
    name: gsuite-token-revoke
  - arguments:
    - description: Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
      name: user_key
      required: true
    description: |-
      Signs a user out of all web and device sessions and reset their sign-in cookies.
    name: gsuite-user-signout
    compliantpolicies:
    - User Soft Remediation
  - arguments:
    - description: Immutable ID of the G Suite account.
      name: customer_id
    - description: Destination user's profile ID.
      name: new_owner_user_id
    - description: Source user's profile ID.
      name: old_owner_user_id
    - description: Status of the transfer.
      name: status
    - description: |-
        Email ID of the G Suite domain admin who acts on behalf of an end-user.
      name: admin_email
    - description: |-
        Maximum number of results to return. Default is 100. Acceptable values are 1 to 500, inclusive.
      name: max_results
    - description: Token to specify the next page in the list.
      name: page_token
    description: "Lists the transfers for a customer by source user, destination user, or status."
    name: gsuite-datatransfer-list
    outputs:
    - contextPath: GSuite.DataTransfer.kind
      description: Identifies the resource as a DataTransfer request.
      type: String
    - contextPath: GSuite.DataTransfer.etag
      description: ETag of the resource.
      type: String
    - contextPath: GSuite.DataTransfer.id
      description: The transfer's ID.
      type: String
    - contextPath: GSuite.DataTransfer.oldOwnerUserId
      description: ID of the user whose data is being transferred.
      type: String
    - contextPath: GSuite.DataTransfer.newOwnerUserId
      description: ID of the user to whom the data is being transferred.
      type: String
    - contextPath: GSuite.DataTransfer.overallTransferStatusCode
      description: Overall transfer status.
      type: String
    - contextPath: GSuite.DataTransfer.requestTime
      description: The time at which the data transfer was requested.
      type: Date
    - contextPath: GSuite.DataTransfer.applicationDataTransfers.applicationTransferStatus
      description: Current status of transfer for this application.
      type: String
    - contextPath: GSuite.DataTransfer.applicationDataTransfers.applicationId
      description: The application's ID.
      type: Number
    - contextPath: GSuite.DataTransfer.applicationDataTransfers.applicationTransferParams.key
      description: The type of the transfer parameter.
      type: String
    - contextPath: GSuite.DataTransfer.applicationDataTransfers.applicationTransferParams.value
      description: The value of the corresponding transfer parameter.
      type: Unknown
    - contextPath: GSuite.PageToken.DataTransfer.nextPageToken
      description: Continuation token which will be used to specify next page in list API.
      type: String
  - arguments:
    - description: 'Email ID of the G Suite domain admin who acts on behalf of an end-user.'
      name: admin_email
    - description: Immutable ID of the G Suite account.
      name: customer_id
    - description: The schema's name.
      name: schema_name
      required: true
    - description: Display name for the schema.
      name: schema_display_name
      required: true
    - description: |-
        Raw JSON containing fields of the schema. Acceptable values for
        fieldType are BOOL, DATE, DOUBLE, EMAIL, INT64, PHONE, and STRING. Acceptable
        values for readAccessType are ADMINS_AND_SELF- Only administrators and
        the associated user can see values, and ALL_DOMAIN_USERS- Any user in
        your domain can see values.
        E.g.
        {
          "fields": [
            {
              "fieldType": string,
              "fieldName": string,
              "displayName": string,
              "multiValued": boolean,
              "readAccessType": string,
              "indexed": boolean,
              "numericIndexingSpec": {
                "minValue": double,
                "maxValue": double
              }
            }
          ]
        }.
      name: field_raw_json
    - description: |-
        JSON file entry ID containing fields of the schema. Acceptable values for
        fieldType are BOOL, DATE, DOUBLE, EMAIL, INT64, PHONE, and STRING. Acceptable
        values for readAccessType are ADMINS_AND_SELF- Only administrators and
        the associated user can see values, and ALL_DOMAIN_USERS- Any user in
        your domain can see values.
        E.g.
        {
          "fields": [
            {
              "fieldType": string,
              "fieldName": string,
              "displayName": string,
              "multiValued": boolean,
              "readAccessType": string,
              "indexed": boolean,
              "numericIndexingSpec": {
                "minValue": double,
                "maxValue": double
              }
            }
          ]
        }.
      name: field_json_entry_id
    description: "Creates a custom user schema to add custom fields to user profiles.\nNote: field_raw_json has higher precedence when both field_raw_json and field_json_entry_id are provided."
    name: gsuite-custom-user-schema-create
    outputs:
    - contextPath: GSuite.UserSchema.kind
      description: The type of the API resource.
      type: String
    - contextPath: GSuite.UserSchema.etag
      description: The ETag of the resource.
      type: String
    - contextPath: GSuite.UserSchema.schemaId
      description: The unique identifier of the schema.
      type: String
    - contextPath: GSuite.UserSchema.schemaName
      description: The schema's name.
      type: String
    - contextPath: GSuite.UserSchema.displayName
      description: Display Name for the schema.
      type: String
    - contextPath: GSuite.UserSchema.fields.kind
      description: The kind of resource this is.
      type: String
    - contextPath: GSuite.UserSchema.fields.fieldId
      description: The unique identifier of the field.
      type: String
    - contextPath: GSuite.UserSchema.fields.etag
      description: The ETag of the field.
      type: String
    - contextPath: GSuite.UserSchema.fields.fieldType
      description: The type of the field.
      type: String
    - contextPath: GSuite.UserSchema.fields.fieldName
      description: The name of the field.
      type: String
    - contextPath: GSuite.UserSchema.fields.displayName
      description: Display name of the field.
      type: String
    - contextPath: GSuite.UserSchema.fields.multiValued
      description: A boolean specifying whether this is a multi-valued field or not.
      type: Boolean
    - contextPath: GSuite.UserSchema.fields.readAccessType
      description: Specifies who can view values of this field.
      type: Boolean
    - contextPath: GSuite.UserSchema.fields.indexed
      description: Specifies whether the field is indexed or not.
      type: Boolean
    - contextPath: GSuite.UserSchema.fields.numericIndexingSpecMinValue
      description: Minimum value of this field.
      type: Number
    - contextPath: GSuite.UserSchema.fields.numericIndexingSpecMaxValue
      description: Maximum value of this field.
      type: Number
  - arguments:
    - description: 'Email ID of the G Suite domain admin who acts on behalf of an end-user.'
      name: admin_email
    - description: Immutable ID of the G Suite account.
      name: customer_id
    - description: The schema's name.
      name: schema_name
    - description: Immutable ID of the schema.
      name: schema_id
    - description: Display name for the schema.
      name: schema_display_name
    - description: |-
        Raw JSON containing fields of the schema. Acceptable values for
        fieldType are BOOL, DATE, DOUBLE, EMAIL, INT64, PHONE, and STRING. Acceptable
        values for readAccessType are ADMINS_AND_SELF- Only administrators and
        the associated user can see values, and ALL_DOMAIN_USERS- Any user in
        your domain can see values.
        E.g.
        {
          "fields": [
            {
              "fieldType": string,
              "fieldName": string,
              "displayName": string,
              "multiValued": boolean,
              "readAccessType": string,
              "indexed": boolean,
              "numericIndexingSpec": {
                "minValue": double,
                "maxValue": double
              }
            }
          ]
        }.
      name: field_raw_json
    - description: |-
        JSON file entry ID containing fields of the schema. Acceptable values for
        fieldType are BOOL, DATE, DOUBLE, EMAIL, INT64, PHONE, and STRING. Acceptable
        values for readAccessType are ADMINS_AND_SELF- Only administrators and
        the associated user can see values, and ALL_DOMAIN_USERS- Any user in
        your domain can see values.
        E.g.
        {
          "fields": [
            {
              "fieldType": string,
              "fieldName": string,
              "displayName": string,
              "multiValued": boolean,
              "readAccessType": string,
              "indexed": boolean,
              "numericIndexingSpec": {
                "minValue": double,
                "maxValue": double
              }
            }
          ]
        }.
      name: field_json_entry_id
    description: "Updates a custom user schema.\nNote: field_raw_json has higher precedence when both field_raw_json and field_json_entry_id are provided."
    name: gsuite-custom-user-schema-update
    outputs:
    - contextPath: GSuite.UserSchema.kind
      description: The type of the API resource.
      type: String
    - contextPath: GSuite.UserSchema.etag
      description: The ETag of the resource.
      type: String
    - contextPath: GSuite.UserSchema.schemaId
      description: The unique identifier of the schema.
      type: String
    - contextPath: GSuite.UserSchema.schemaName
      description: The schema's name.
      type: String
    - contextPath: GSuite.UserSchema.displayName
      description: Display Name for the schema.
      type: String
    - contextPath: GSuite.UserSchema.fields.kind
      description: The kind of resource this is.
      type: String
    - contextPath: GSuite.UserSchema.fields.fieldId
      description: The unique identifier of the field.
      type: String
    - contextPath: GSuite.UserSchema.fields.etag
      description: The ETag of the field.
      type: String
    - contextPath: GSuite.UserSchema.fields.fieldType
      description: The type of the field.
      type: String
    - contextPath: GSuite.UserSchema.fields.fieldName
      description: The name of the field.
      type: String
    - contextPath: GSuite.UserSchema.fields.displayName
      description: Display name of the field.
      type: String
    - contextPath: GSuite.UserSchema.fields.multiValued
      description: A boolean specifying whether this is a multi-valued field or not.
      type: Boolean
    - contextPath: GSuite.UserSchema.fields.readAccessType
      description: Specifies who can view values of this field.
      type: Boolean
    - contextPath: GSuite.UserSchema.fields.indexed
      description: Specifies whether the field is indexed or not.
      type: Boolean
    - contextPath: GSuite.UserSchema.fields.numericIndexingSpecMinValue
      description: Minimum value of this field.
      type: Number
    - contextPath: GSuite.UserSchema.fields.numericIndexingSpecMaxValue
      description: Maximum value of this field.
      type: Number
  - arguments:
    - description: Email ID of the G Suite domain admin acts on behalf of an end-user.
      name: admin_email
    - description: ID of the user whose data is being transferred.
      name: old_owner_id
      required: true
    - description: ID of the user to whom the data is being transferred.
      name: new_owner_id
      required: true
    - description: The application's ID.
      name: application_id
    - description: Key and value pair of application data transfer parameters. Key and value must be delimited by (:) colon. Multiple values must be delimited by (,) comma. Multiple key-value pairs must be delimited by (;) semi-colon. E.g. key1:val;key2:val1,val2.
      name: application_transfer_params
    - description: |-
        Raw JSON containing the whole body of the application data transfers.
        E.g.
        {
          "applicationDataTransfers": [
            {
              "applicationId": long,
              "applicationTransferParams": [
                {
                  "key": string,
                  "value": [
                    string
                  ]
                }
              ]
            }
          ]
        }.
      name: applications_raw_json
    - description: |-
        JSON file Entry ID containing the whole body of the application data transfers.
        E.g.
        {
          "applicationDataTransfers": [
            {
              "applicationId": long,
              "applicationTransferParams": [
                {
                  "key": string,
                  "value": [
                    string
                  ]
                }
              ]
            }
          ]
        }.
      name: applications_raw_json_entry_id
    description: |-
      Inserts a data transfer request.
      Note: If all three applications_raw_json, applications_raw_json_entry_id and application_id are provided
      the higher precedence will be in order of applications_raw_json, applications_raw_json_entry_id,
      and application_id respectively.
    name: gsuite-datatransfer-request-create
    outputs:
    - contextPath: GSuite.DataTransfer.kind
      description: Identifies the resource as a DataTransfer request.
      type: String
    - contextPath: GSuite.DataTransfer.etag
      description: ETag of the resource.
      type: String
    - contextPath: GSuite.DataTransfer.id
      description: The transfer's ID.
      type: String
    - contextPath: GSuite.DataTransfer.oldOwnerUserId
      description: ID of the user whose data is being transferred.
      type: String
    - contextPath: GSuite.DataTransfer.newOwnerUserId
      description: ID of the user to whom the data is being transferred.
      type: String
    - contextPath: GSuite.DataTransfer.applicationDataTransfers.applicationId
      description: The application's ID.
      type: Number
    - contextPath: GSuite.DataTransfer.applicationDataTransfers.applicationTransferParams.key
      description: The type of the transfer parameter.
      type: String
    - contextPath: GSuite.DataTransfer.applicationDataTransfers.applicationTransferParams.value
      description: The value of the corresponding transfer parameter.
      type: Unknown
    - contextPath: GSuite.DataTransfer.applicationDataTransfers.applicationTransferStatus
      description: Current status of transfer for this application.
      type: String
    - contextPath: GSuite.DataTransfer.overallTransferStatusCode
      description: Overall transfer status.
      type: String
    - contextPath: GSuite.DataTransfer.requestTime
      description: The time at which the data transfer was requested.
      type: Date
  - arguments:
    - description: Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
      name: user_key
      required: true
    - description: Email ID of the G Suite domain admin acts on behalf of an end-user.
      name: admin_email
    description: Deletes a user.
    name: gsuite-user-delete
  - arguments:
    - description: 'The user''s first name.'
      name: first_name
    - description: The user's last name.
      name: last_name
    - description: Stores the password for the user account. A password can contain any combination of ASCII characters. A minimum of 8 characters is required. The maximum length is 100 characters. The password will be sent in MD5 hash format.
      name: password
    - description: The user's primary email address. The primary_email must be unique and cannot be an alias of another user.
      name: primary_email
    - description: User's Country.
      name: country
    - auto: PREDEFINED
      description: The address type.
      name: address_type
      predefined:
      - home
      - other
      - work
    - description: The ZIP or postal code, if applicable.
      name: postal_code
    - auto: PREDEFINED
      description: Set to true, If this is the user's primary address.
      name: is_address_primary
      predefined:
      - 'true'
      - 'false'
    - description: For extended addresses, such as an address that includes a sub-region.
      name: extended_address
    - description: The abbreviated province or state.
      name: region
    - description: The street address, such as 1600 Amphitheatre Parkway. Whitespace within the string is ignored; however, newlines are significant.
      name: street_address
    - description: The user's secondary email address.
      name: secondary_email_address
    - auto: PREDEFINED
      description: The type of the secondary email account.
      name: secondary_email_type
      predefined:
      - home
      - other
      - work
    - auto: PREDEFINED
      description: User's gender.
      name: gender
      predefined:
      - female
      - male
      - other
      - unknown
    - auto: PREDEFINED
      description: If true, the user's IP address is on allow list.
      name: is_ip_white_listed
      predefined:
      - 'true'
      - 'false'
    - auto: PREDEFINED
      description: Content type of note, either plain text or HTML. If not provided, considered as plain text.
      name: notes_content_type
      predefined:
      - text_plain
      - text_html
    - description: Contents of notes.
      name: notes_value
    - description: A human-readable phone number. It may be in any telephone number format.
      name: phone_number
    - auto: PREDEFINED
      description: The type of phone number.
      name: phone_number_type
      predefined:
      - assistant
      - callback
      - car
      - company_main
      - grand_central
      - home
      - home_fax
      - isdn
      - main
      - mobile
      - other
      - other_fax
      - pager
      - radio
      - telex
      - tty_tdd
      - work
      - work_fax
      - work_mobile
      - work_pager
    - auto: PREDEFINED
      description: Indicates if this is the user's primary phone number. A user may only have one primary phone number.
      name: is_phone_number_primary
      predefined:
      - 'true'
      - 'false'
    - description: Recovery email of the user.
      name: recovery_email
    - description: 'Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: +16506661212.'
      name: recovery_phone
    - auto: PREDEFINED
      description: Indicates if the user is suspended.
      name: suspended
      predefined:
      - 'true'
      - 'false'
    - description: Email ID of the G Suite domain admin acts on behalf of an end-user.
      name: admin_email
    - description: Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
      name: user_key
      required: true
    - auto: PREDEFINED
      description: Indicates if the user is archived.
      name: archived
      predefined:
      - 'true'
      - 'false'
    - description: To move the user to OU (Organization Unit). 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 (/).
      name: org_unit_path
    description: Updates a user.
    name: gsuite-user-update
    outputs:
    - contextPath: GSuite.User.id
      description: The unique ID for the user.
      type: String
    - contextPath: GSuite.User.primaryEmail
      description: The user's primary email address.
      type: String
    - contextPath: GSuite.User.firstName
      description: The user's first name.
      type: String
    - contextPath: GSuite.User.lastName
      description: The user's last name.
      type: String
    - contextPath: GSuite.User.customerId
      description: The unique ID for the customer's G Suite account.
      type: String
    - contextPath: GSuite.User.gender
      description: Gender.
      type: String
    - contextPath: GSuite.User.suspended
      description: Indicates if the user is suspended.
      type: Boolean
    - contextPath: GSuite.User.notesValue
      description: Contents of notes.
      type: String
    - contextPath: GSuite.User.notesContentType
      description: Content type of notes.
      type: String
    - contextPath: GSuite.User.isAdmin
      description: Indicates a user with super administrator privileges.
      type: Boolean
    - contextPath: GSuite.User.creationTime
      description: The time the user's account was created.
      type: Date
    - contextPath: GSuite.User.phones.value
      description: A human-readable phone number. It may be in any telephone number format.
      type: String
    - contextPath: GSuite.User.phones.type
      description: The type of phone number.
      type: String
    - contextPath: GSuite.User.phones.primary
      description: Indicates if this is the user's primary phone number.
      type: Boolean
    - contextPath: GSuite.User.phones.customType
      description: If the value of type is custom, this property contains the custom type.
      type: String
    - contextPath: GSuite.User.addresses.type
      description: The address type.
      type: String
    - contextPath: GSuite.User.addresses.customType
      description: If the address type is custom, this property contains the custom value.
      type: String
    - contextPath: GSuite.User.addresses.sourceIsStructured
      description: Indicates if the user-supplied address was formatted. Formatted addresses are not currently supported.
      type: Boolean
    - contextPath: GSuite.User.addresses.formatted
      description: A full and unstructured postal address. This is not synced with the structured address fields.
      type: String
    - contextPath: GSuite.User.addresses.poBox
      description: The post office box, if present.
      type: String
    - contextPath: GSuite.User.addresses.locality
      description: The town or city of the address.
      type: String
    - contextPath: GSuite.User.addresses.countryCode
      description: The country code. Uses the ISO 3166-1 standard.
      type: String
    - contextPath: GSuite.User.addresses.country
      description: Country.
      type: String
    - contextPath: GSuite.User.addresses.postalCode
      description: The ZIP or postal code.
      type: String
    - contextPath: GSuite.User.addresses.region
      description: The abbreviated province or state.
      type: String
    - contextPath: GSuite.User.addresses.streetAddress
      description: The street address.
      type: String
    - contextPath: GSuite.User.addresses.extendedAddress
      description: For extended addresses, such as an  address that includes a sub-region.
      type: String
    - contextPath: GSuite.User.addresses.primary
      description: If this is the user's primary address.
      type: Boolean
    - contextPath: GSuite.User.emails.address
      description: The user's secondary email.
      type: String
    - contextPath: GSuite.User.emails.type
      description: The secondary email type.
      type: String
    - contextPath: GSuite.User.emails.customType
      description: If the value of type is custom, this property contains the custom type string.
      type: String
    - contextPath: GSuite.User.emails.primary
      description: Indicates if this is the user's primary email. Only one entry can be marked as primary.
      type: Boolean
    - contextPath: GSuite.User.ipWhitelisted
      description: If true, the user's IP address is added to allow list.
      type: Boolean
    - contextPath: GSuite.User.recoveryEmail
      description: Recovery email of the user.
      type: String
    - contextPath: GSuite.User.isDelegatedAdmin
      description: Indicates if the user is a delegated administrator.
      type: Boolean
    - contextPath: GSuite.User.recoveryPhone
      description: Recovery phone of the user.
      type: String
    - contextPath: GSuite.User.orgUnitPath
      description: 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 (/).
      type: String
    - contextPath: GSuite.User.isMailboxSetup
      description: Indicates if the user's Google mailbox is created.
      type: Boolean
    - contextPath: GSuite.User.kind
      description: The type of the API resource.
      type: Boolean
    - contextPath: GSuite.User.etag
      description: ETag of the resource.
      type: Boolean
    - contextPath: GSuite.User.hashFunction
      description: Stores the hash format of the password property.
      type: String
    - contextPath: GSuite.User.archived
      description: Indicates if the user is archived.
      type: Boolean
    - contextPath: GSuite.User.fullName
      description: The user's full name formed by concatenating the first and last name values.
      type: String
    - contextPath: GSuite.User.lastLoginTime
      description: The last time the user logged into the user's account. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example, 2010-04-05T17:30:04+01:00.
      type: Date
    - contextPath: GSuite.User.deletionTime
      description: The time the user's account was deleted. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example 2010-04-05T17:30:04+01:00.
      type: Date
    - contextPath: GSuite.User.agreedToTerms
      description: This property is true if the user has completed an initial login and accepted the Terms of Service agreement.
      type: Boolean
    - contextPath: GSuite.User.suspensionReason
      description: Has the reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the suspended property is true.
      type: String
    - contextPath: GSuite.User.changePasswordAtNextLogin
      description: Indicates if the user is forced to change their password at next login. This setting doesn't apply when the user signs in via a third-party identity provider.
      type: Boolean
    - contextPath: GSuite.User.ims.type
      description: Type of the user's Instant Messenger (IM) account.
      type: Boolean
    - contextPath: GSuite.User.ims.customType
      description: If the IM type is custom, this property holds the custom type string.
      type: String
    - contextPath: GSuite.User.ims.protocol
      description: An IM protocol identifies the IM network. The value can be a custom network or the standard network.
      type: String
    - contextPath: GSuite.User.ims.customProtocol
      description: If the protocol value is custom_protocol, this property holds the custom protocol's string.
      type: String
    - contextPath: GSuite.User.ims.im
      description: The user's IM network ID.
      type: String
    - contextPath: GSuite.User.ims.primary
      description: If this is the user's primary IM. Only one entry in the IM list can have a value of true.
      type: Boolean
    - contextPath: GSuite.User.externalIds.value
      description: The value of the external ID.
      type: String
    - contextPath: GSuite.User.externalIds.type
      description: The type of the external ID.
      type: String
    - contextPath: GSuite.User.externalIds.customType
      description: If the external ID type is custom, this property holds the custom type.
      type: String
    - contextPath: GSuite.User.relations.value
      description: The name of the person the user is related to.
      type: String
    - contextPath: GSuite.User.relations.type
      description: The type of relation.
      type: String
    - contextPath: GSuite.User.relations.customType
      description: If the value of type is custom, this property contains the custom type.
      type: String
    - contextPath: GSuite.User.organizations.name
      description: The name of the organization.
      type: String
    - contextPath: GSuite.User.organizations.title
      description: The user's title within the organization, for example 'member' or 'engineer'.
      type: String
    - contextPath: GSuite.User.organizations.primary
      description: Indicates if this is the user's primary organization. A user may only have one primary organization.
      type: Boolean
    - contextPath: GSuite.User.organizations.type
      description: The type of organization.
      type: String
    - contextPath: GSuite.User.organizations.customType
      description: If the value of type is custom, this property contains the custom type.
      type: String
    - contextPath: GSuite.User.organizations.department
      description: Specifies the department within the organization, such as 'sales' or 'engineering'.
      type: String
    - contextPath: GSuite.User.organizations.symbol
      description: Text string symbol of the organization. For example, the text symbol for Google is GOOG.
      type: String
    - contextPath: GSuite.User.organizations.location
      description: The physical location of the organization. This does not need to be a fully qualified address.
      type: String
    - contextPath: GSuite.User.organizations.description
      description: The description of the organization.
      type: String
    - contextPath: GSuite.User.organizations.domain
      description: The domain the organization belongs to.
      type: String
    - contextPath: GSuite.User.organizations.costCenter
      description: The cost center of the user's organization.
      type: String
    - contextPath: GSuite.User.organizations.fullTimeEquivalent
      description: The full-time equivalent millipercent within the organization (100000 = 100%).
      type: String
    - contextPath: GSuite.User.languages.languageCode
      description: Language Code. Should be used for storing Google III LanguageCode string representation for language. Illegal values cause SchemaException.
      type: String
    - contextPath: GSuite.User.languages.customLanguage
      description: Other language. A user can provide their own language name if there is no corresponding Google III language code. If this is set, LanguageCode can't be set.
      type: String
    - contextPath: GSuite.User.posixAccounts.username
      description: The username of the account.
      type: String
    - contextPath: GSuite.User.posixAccounts.uid
      description: The POSIX compliant user ID.
      type: Number
    - contextPath: GSuite.User.posixAccounts.gid
      description: The default group ID.
      type: Number
    - contextPath: GSuite.User.posixAccounts.homeDirectory
      description: The path to the home directory for this account.
      type: String
    - contextPath: GSuite.User.posixAccounts.shell
      description: The path to the login shell for this account.
      type: String
    - contextPath: GSuite.User.posixAccounts.gecos
      description: The GECOS (user information) for this account.
      type: String
    - contextPath: GSuite.User.posixAccounts.systemId
      description: System identifier for which account Username or Uid apply to.
      type: String
    - contextPath: GSuite.User.posixAccounts.primary
      description: If this is user's primary account within the SystemId.
      type: Boolean
    - contextPath: GSuite.User.posixAccounts.accountId
      description: A POSIX account field identifier.
      type: String
    - contextPath: GSuite.User.posixAccounts.operatingSystemType
      description: The operating system type for this account.
      type: String
    - contextPath: GSuite.User.sshPublicKeys.key
      description: An SSH public key.
      type: String
    - contextPath: GSuite.User.sshPublicKeys.expirationTimeUsec
      description: An expiration time in microseconds since epoch.
      type: String
    - contextPath: GSuite.User.sshPublicKeys.fingerprint
      description: A SHA-256 fingerprint of the SSH public key.
      type: String
    - contextPath: GSuite.User.aliases
      description: List of the user's alias email addresses.
      type: Unknown
    - contextPath: GSuite.User.nonEditableAliases
      description: List of the user's non-editable alias email addresses. These are typically outside the account's primary domain or sub-domain.
      type: Unknown
    - contextPath: GSuite.User.websites.value
      description: The URL of the website.
      type: String
    - contextPath: GSuite.User.websites.primary
      description: If this is user's primary website or not.
      type: Boolean
    - contextPath: GSuite.User.websites.type
      description: The type or purpose of the website. For example, a website could be labeled as home or blog. Alternatively, an entry can have a custom type.
      type: String
    - contextPath: GSuite.User.websites.customType
      description: The custom type. Only used if the type is custom.
      type: String
    - contextPath: GSuite.User.locations.type
      description: The location type.
      type: String
    - contextPath: GSuite.User.locations.customType
      description: If the location type is custom, this property contains the custom value.
      type: String
    - contextPath: GSuite.User.locations.area
      description: Textual location. This is most useful for display purposes to concisely describe the location. For example, "Mountain View, CA", "Near Seattle".
      type: String
    - contextPath: GSuite.User.locations.buildingId
      description: Building identifier.
      type: String
    - contextPath: GSuite.User.locations.floorName
      description: Floor name/number.
      type: String
    - contextPath: GSuite.User.locations.floorSection
      description: Floor section. More specific location within the floor. For example, if a floor is divided into sections "A", "B", and "C", this field would identify one of those values.
      type: String
    - contextPath: GSuite.User.locations.deskCode
      description: Most specific textual code of individual desk location.
      type: String
    - contextPath: GSuite.User.keywords.type
      description: Each entry can have a type which indicates standard type of that entry. For example, keyword could be of type occupation or outlook. In addition to the standard type, an entry can have a custom type and can give it any name. Such types should have the CUSTOM value as type and also have a customType value.
      type: String
    - contextPath: GSuite.User.keywords.customType
      description: Custom Type.
      type: String
    - contextPath: GSuite.User.keywords.value
      description: Keyword.
      type: String
    - contextPath: GSuite.User.isEnrolledIn2Sv
      description: Is enrolled in 2-step verification.
      type: Boolean
    - contextPath: GSuite.User.isEnforcedIn2Sv
      description: Is 2-step verification enforced.
      type: Boolean
    - contextPath: GSuite.User.includeInGlobalAddressList
      description: 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.
      type: Boolean
    - contextPath: GSuite.User.thumbnailPhotoUrl
      description: Photo Url of the user.
      type: String
    - contextPath: GSuite.User.thumbnailPhotoEtag
      description: ETag of the user's photo.
      type: String
    - contextPath: GSuite.User.customSchemas
      description: Custom fields of the user.
      type: Unknown
    compliantpolicies:
    - User Soft Remediation
  - arguments:
    - description: 'One of the following: user email address, alias email address, or the unique user ID.'
      name: user
      required: true
    description: Retrieve a user's details given a user key.
    name: gsuite-user-get
    outputs:
    - contextPath: GSuite.User.id
      description: The unique ID for the user.
      type: String
    - contextPath: GSuite.User.primaryEmail
      description: The user's primary email address.
      type: String
    - contextPath: GSuite.User.firstName
      description: The user's first name.
      type: String
    - contextPath: GSuite.User.lastName
      description: The user's last name.
      type: String
    - contextPath: GSuite.User.customerId
      description: The unique ID for the customer's G Suite account.
      type: String
    - contextPath: GSuite.User.gender
      description: Gender.
      type: String
    - contextPath: GSuite.User.suspended
      description: Indicates if the user is suspended.
      type: Boolean
    - contextPath: GSuite.User.notesValue
      description: Contents of notes.
      type: String
    - contextPath: GSuite.User.notesContentType
      description: Content type of notes.
      type: String
    - contextPath: GSuite.User.isAdmin
      description: Indicates a user with super administrator privileges.
      type: Boolean
    - contextPath: GSuite.User.creationTime
      description: The time the user's account was created.
      type: Date
    - contextPath: GSuite.User.phones.value
      description: A human-readable phone number. It may be in any telephone number format.
      type: String
    - contextPath: GSuite.User.phones.type
      description: The type of phone number.
      type: String
    - contextPath: GSuite.User.phones.primary
      description: Indicates if this is the user's primary phone number.
      type: Boolean
    - contextPath: GSuite.User.phones.customType
      description: If the value of type is custom, this property contains the custom type.
      type: String
    - contextPath: GSuite.User.addresses.type
      description: The address type.
      type: String
    - contextPath: GSuite.User.addresses.customType
      description: If the address type is custom, this property contains the custom value.
      type: String
    - contextPath: GSuite.User.addresses.sourceIsStructured
      description: Indicates if the user-supplied address was formatted. Formatted addresses are not currently supported.
      type: Boolean
    - contextPath: GSuite.User.addresses.formatted
      description: A full and unstructured postal address. This is not synced with the structured address fields.
      type: String
    - contextPath: GSuite.User.addresses.poBox
      description: The post office box, if present.
      type: String
    - contextPath: GSuite.User.addresses.locality
      description: The town or city of the address.
      type: String
    - contextPath: GSuite.User.addresses.countryCode
      description: The country code. Uses the ISO 3166-1 standard.
      type: String
    - contextPath: GSuite.User.addresses.country
      description: Country.
      type: String
    - contextPath: GSuite.User.addresses.postalCode
      description: The ZIP or postal code.
      type: String
    - contextPath: GSuite.User.addresses.region
      description: The abbreviated province or state.
      type: String
    - contextPath: GSuite.User.addresses.streetAddress
      description: The street address.
      type: String
    - contextPath: GSuite.User.addresses.extendedAddress
      description: For extended addresses, such as an  address that includes a sub-region.
      type: String
    - contextPath: GSuite.User.addresses.primary
      description: If this is the user's primary address.
      type: Boolean
    - contextPath: GSuite.User.emails.address
      description: The user's secondary email.
      type: String
    - contextPath: GSuite.User.emails.type
      description: The secondary email type.
      type: String
    - contextPath: GSuite.User.emails.customType
      description: If the value of type is custom, this property contains the custom type string.
      type: String
    - contextPath: GSuite.User.emails.primary
      description: Indicates if this is the user's primary email. Only one entry can be marked as primary.
      type: Boolean
    - contextPath: GSuite.User.ipWhitelisted
      description: If true, the user's IP address is added to allow list.
      type: Boolean
    - contextPath: GSuite.User.recoveryEmail
      description: Recovery email of the user.
      type: String
    - contextPath: GSuite.User.isDelegatedAdmin
      description: Indicates if the user is a delegated administrator.
      type: Boolean
    - contextPath: GSuite.User.recoveryPhone
      description: Recovery phone of the user.
      type: String
    - contextPath: GSuite.User.orgUnitPath
      description: 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 (/).
      type: String
    - contextPath: GSuite.User.isMailboxSetup
      description: Indicates if the user's Google mailbox is created.
      type: Boolean
    - contextPath: GSuite.User.kind
      description: The type of the API resource.
      type: Boolean
    - contextPath: GSuite.User.etag
      description: ETag of the resource.
      type: Boolean
    - contextPath: GSuite.User.hashFunction
      description: Stores the hash format of the password property.
      type: String
    - contextPath: GSuite.User.archived
      description: Indicates if the user is archived.
      type: Boolean
    - contextPath: GSuite.User.fullName
      description: The user's full name formed by concatenating the first and last name values.
      type: String
    - contextPath: GSuite.User.lastLoginTime
      description: The last time the user logged into the user's account. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example, 2010-04-05T17:30:04+01:00.
      type: Date
    - contextPath: GSuite.User.deletionTime
      description: The time the user's account was deleted. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example 2010-04-05T17:30:04+01:00.
      type: Date
    - contextPath: GSuite.User.agreedToTerms
      description: This property is true if the user has completed an initial login and accepted the Terms of Service agreement.
      type: Boolean
    - contextPath: GSuite.User.suspensionReason
      description: Has the reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the suspended property is true.
      type: String
    - contextPath: GSuite.User.changePasswordAtNextLogin
      description: Indicates if the user is forced to change their password at next login. This setting doesn't apply when the user signs in via a third-party identity provider.
      type: Boolean
    - contextPath: GSuite.User.ims.type
      description: Type of the user's Instant Messenger (IM) account.
      type: Boolean
    - contextPath: GSuite.User.ims.customType
      description: If the IM type is custom, this property holds the custom type string.
      type: String
    - contextPath: GSuite.User.ims.protocol
      description: An IM protocol identifies the IM network. The value can be a custom network or the standard network.
      type: String
    - contextPath: GSuite.User.ims.customProtocol
      description: If the protocol value is custom_protocol, this property holds the custom protocol's string.
      type: String
    - contextPath: GSuite.User.ims.im
      description: The user's IM network ID.
      type: String
    - contextPath: GSuite.User.ims.primary
      description: If this is the user's primary IM. Only one entry in the IM list can have a value of true.
      type: Boolean
    - contextPath: GSuite.User.externalIds.value
      description: The value of the external ID.
      type: String
    - contextPath: GSuite.User.externalIds.type
      description: The type of the external ID.
      type: String
    - contextPath: GSuite.User.externalIds.customType
      description: If the external ID type is custom, this property holds the custom type.
      type: String
    - contextPath: GSuite.User.relations.value
      description: The name of the person the user is related to.
      type: String
    - contextPath: GSuite.User.relations.type
      description: The type of relation.
      type: String
    - contextPath: GSuite.User.relations.customType
      description: If the value of type is custom, this property contains the custom type.
      type: String
    - contextPath: GSuite.User.organizations.name
      description: The name of the organization.
      type: String
    - contextPath: GSuite.User.organizations.title
      description: The user's title within the organization, for example 'member' or 'engineer'.
      type: String
    - contextPath: GSuite.User.organizations.primary
      description: Indicates if this is the user's primary organization. A user may only have one primary organization.
      type: Boolean
    - contextPath: GSuite.User.organizations.type
      description: The type of organization.
      type: String
    - contextPath: GSuite.User.organizations.customType
      description: If the value of type is custom, this property contains the custom type.
      type: String
    - contextPath: GSuite.User.organizations.department
      description: Specifies the department within the organization, such as 'sales' or 'engineering'.
      type: String
    - contextPath: GSuite.User.organizations.symbol
      description: Text string symbol of the organization. For example, the text symbol for Google is GOOG.
      type: String
    - contextPath: GSuite.User.organizations.location
      description: The physical location of the organization. This does not need to be a fully qualified address.
      type: String
    - contextPath: GSuite.User.organizations.description
      description: The description of the organization.
      type: String
    - contextPath: GSuite.User.organizations.domain
      description: The domain the organization belongs to.
      type: String
    - contextPath: GSuite.User.organizations.costCenter
      description: The cost center of the user's organization.
      type: String
    - contextPath: GSuite.User.organizations.fullTimeEquivalent
      description: The full-time equivalent millipercent within the organization (100000 = 100%).
      type: String
    - contextPath: GSuite.User.languages.languageCode
      description: Language Code. Should be used for storing Google III LanguageCode string representation for language. Illegal values cause SchemaException.
      type: String
    - contextPath: GSuite.User.languages.customLanguage
      description: Other language. A user can provide their own language name if there is no corresponding Google III language code. If this is set, LanguageCode can't be set.
      type: String
    - contextPath: GSuite.User.posixAccounts.username
      description: The username of the account.
      type: String
    - contextPath: GSuite.User.posixAccounts.uid
      description: The POSIX compliant user ID.
      type: Number
    - contextPath: GSuite.User.posixAccounts.gid
      description: The default group ID.
      type: Number
    - contextPath: GSuite.User.posixAccounts.homeDirectory
      description: The path to the home directory for this account.
      type: String
    - contextPath: GSuite.User.posixAccounts.shell
      description: The path to the login shell for this account.
      type: String
    - contextPath: GSuite.User.posixAccounts.gecos
      description: The GECOS (user information) for this account.
      type: String
    - contextPath: GSuite.User.posixAccounts.systemId
      description: System identifier for which account Username or Uid apply to.
      type: String
    - contextPath: GSuite.User.posixAccounts.primary
      description: If this is user's primary account within the SystemId.
      type: Boolean
    - contextPath: GSuite.User.posixAccounts.accountId
      description: A POSIX account field identifier.
      type: String
    - contextPath: GSuite.User.posixAccounts.operatingSystemType
      description: The operating system type for this account.
      type: String
    - contextPath: GSuite.User.sshPublicKeys.key
      description: An SSH public key.
      type: String
    - contextPath: GSuite.User.sshPublicKeys.expirationTimeUsec
      description: An expiration time in microseconds since epoch.
      type: String
    - contextPath: GSuite.User.sshPublicKeys.fingerprint
      description: A SHA-256 fingerprint of the SSH public key.
      type: String
    - contextPath: GSuite.User.aliases
      description: List of the user's alias email addresses.
      type: Unknown
    - contextPath: GSuite.User.nonEditableAliases
      description: List of the user's non-editable alias email addresses. These are typically outside the account's primary domain or sub-domain.
      type: Unknown
    - contextPath: GSuite.User.websites.value
      description: The URL of the website.
      type: String
    - contextPath: GSuite.User.websites.primary
      description: If this is user's primary website or not.
      type: Boolean
    - contextPath: GSuite.User.websites.type
      description: The type or purpose of the website. For example, a website could be labeled as home or blog. Alternatively, an entry can have a custom type.
      type: String
    - contextPath: GSuite.User.websites.customType
      description: The custom type. Only used if the type is custom.
      type: String
    - contextPath: GSuite.User.locations.type
      description: The location type.
      type: String
    - contextPath: GSuite.User.locations.customType
      description: If the location type is custom, this property contains the custom value.
      type: String
    - contextPath: GSuite.User.locations.area
      description: Textual location. This is most useful for display purposes to concisely describe the location. For example, "Mountain View, CA", "Near Seattle".
      type: String
    - contextPath: GSuite.User.locations.buildingId
      description: Building identifier.
      type: String
    - contextPath: GSuite.User.locations.floorName
      description: Floor name/number.
      type: String
    - contextPath: GSuite.User.locations.floorSection
      description: Floor section. More specific location within the floor. For example, if a floor is divided into sections "A", "B", and "C", this field would identify one of those values.
      type: String
    - contextPath: GSuite.User.locations.deskCode
      description: Most specific textual code of individual desk location.
      type: String
    - contextPath: GSuite.User.keywords.type
      description: Each entry can have a type which indicates standard type of that entry. For example, keyword could be of type occupation or outlook. In addition to the standard type, an entry can have a custom type and can give it any name. Such types should have the CUSTOM value as type and also have a customType value.
      type: String
    - contextPath: GSuite.User.keywords.customType
      description: Custom Type.
      type: String
    - contextPath: GSuite.User.keywords.value
      description: Keyword.
      type: String
    - contextPath: GSuite.User.isEnrolledIn2Sv
      description: Is enrolled in 2-step verification.
      type: Boolean
    - contextPath: GSuite.User.isEnforcedIn2Sv
      description: Is 2-step verification enforced.
      type: Boolean
    - contextPath: GSuite.User.includeInGlobalAddressList
      description: 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.
      type: Boolean
    - contextPath: GSuite.User.thumbnailPhotoUrl
      description: Photo Url of the user.
      type: String
    - contextPath: GSuite.User.thumbnailPhotoEtag
      description: ETag of the user's photo.
      type: String
    - contextPath: GSuite.User.customSchemas
      description: Custom fields of the user.
      type: Unknown
  - arguments:
    - description: 'One of the following: group email address, group alias, or the unique group ID.'
      name: group
      required: true
    description: Retreive a group's details given a group key.
    name: gsuite-group-get
    outputs:
    - contextPath: GSuite.Group.kind
      description: The type of the API resource.
      type: String
    - contextPath: GSuite.Group.id
      description: The unique ID of a group.
      type: String
    - contextPath: GSuite.Group.etag
      description: ETag of the resource.
      type: String
    - contextPath: GSuite.Group.email
      description: The group's email address.
      type: String
    - contextPath: GSuite.Group.name
      description: The group's display name.
      type: String
    - contextPath: GSuite.Group.directMembersCount
      description: The number of users that are direct members of the group.
      type: String
    - contextPath: GSuite.Group.description
      description: An extended description to help users determine the purpose of a group.
      type: String
    - contextPath: GSuite.Group.adminCreated
      description: Value is true if this group was created by an administrator rather than a user.
      type: Boolean
    - contextPath: GSuite.Group.aliases
      description: List of a group's alias email addresses.
      type: String
    - contextPath: GSuite.Group.nonEditableAliases
      description: List of the group's non-editable alias email addresses that are outside of the account's primary domain or subdomains.
      type: String
  - arguments:
    - description: 'One of the following: user email address, alias email address, or the unique user ID.'
      name: user_key
      required: true
    description: Indicates if the user is forced to change their password at next login.
    name: gsuite-user-reset-password
    outputs:
    - contextPath: GSuite.User.id
      description: The unique ID for the user.
      type: String
    - contextPath: GSuite.User.primaryEmail
      description: The user's primary email address.
      type: String
    - contextPath: GSuite.User.firstName
      description: The user's first name.
      type: String
    - contextPath: GSuite.User.lastName
      description: The user's last name.
      type: String
    - contextPath: GSuite.User.customerId
      description: The unique ID for the customer's G Suite account.
      type: String
    - contextPath: GSuite.User.gender
      description: The user's gender.
      type: String
    - contextPath: GSuite.User.suspended
      description: Indicates if the user is suspended.
      type: Boolean
    - contextPath: GSuite.User.notesValue
      description: Content of the notes.
      type: String
    - contextPath: GSuite.User.notesContentType
      description: Content type of the notes.
      type: String
    - contextPath: GSuite.User.isAdmin
      description: Indicates a user with super administrator privileges.
      type: Boolean
    - contextPath: GSuite.User.creationTime
      description: The time the user's account was created.
      type: Date
    - contextPath: GSuite.User.phones.value
      description: A human-readable phone number. It may be in any telephone number format.
      type: String
    - contextPath: GSuite.User.phones.type
      description: The type of phone number.
      type: String
    - contextPath: GSuite.User.phones.primary
      description: Indicates if this is the user's primary phone number.
      type: Boolean
    - contextPath: GSuite.User.phones.customType
      description: If the value of type is custom, this property contains the custom type string.
      type: String
    - contextPath: GSuite.User.addresses.type
      description: The address type.
      type: String
    - contextPath: GSuite.User.addresses.customType
      description: If the value of type is custom, this property contains the custom type string.
      type: String
    - contextPath: GSuite.User.addresses.sourceIsStructured
      description: Indicates if the user-supplied address was formatted. Formatted addresses are not currently supported.
      type: Boolean
    - contextPath: GSuite.User.addresses.formatted
      description: A full and unstructured postal address. This is not synced with the structured address fields.
      type: String
    - contextPath: GSuite.User.addresses.poBox
      description: The post office box, if present.
      type: String
    - contextPath: GSuite.User.addresses.locality
      description: The town or city of the address.
      type: String
    - contextPath: GSuite.User.addresses.countryCode
      description: The country code. Uses the ISO 3166-1 standard.
      type: String
    - contextPath: GSuite.User.addresses.country
      description: Country.
      type: String
    - contextPath: GSuite.User.addresses.postalCode
      description: The ZIP or postal code.
      type: String
    - contextPath: GSuite.User.addresses.region
      description: The abbreviated province or state.
      type: String
    - contextPath: GSuite.User.addresses.streetAddress
      description: The street address.
      type: String
    - contextPath: GSuite.User.addresses.extendedAddress
      description: For extended addresses, such as an address that includes a sub-region.
      type: String
    - contextPath: GSuite.User.addresses.primary
      description: If this is the user's primary address.
      type: Boolean
    - contextPath: GSuite.User.emails.address
      description: The user's secondary email.
      type: String
    - contextPath: GSuite.User.emails.type
      description: The secondary email type.
      type: String
    - contextPath: GSuite.User.emails.customType
      description: If the value of type is custom, this property contains the custom type string.
      type: String
    - contextPath: GSuite.User.emails.primary
      description: Indicates if this is the user's primary email. Only one entry can be marked as primary.
      type: Boolean
    - contextPath: GSuite.User.ipWhitelisted
      description: If true, the user's IP address is added to the allow list.
      type: Boolean
    - contextPath: GSuite.User.recoveryEmail
      description: Recovery email of the user.
      type: String
    - contextPath: GSuite.User.isDelegatedAdmin
      description: Indicates if the user is a delegated administrator.
      type: Boolean
    - contextPath: GSuite.User.recoveryPhone
      description: Recovery phone of the user.
      type: String
    - contextPath: GSuite.User.orgUnitPath
      description: 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 (/).
      type: String
    - contextPath: GSuite.User.isMailboxSetup
      description: Indicates if the user's Google mailbox is created.
      type: Boolean
    - contextPath: GSuite.User.kind
      description: The type of the API resource.
      type: Boolean
    - contextPath: GSuite.User.etag
      description: ETag of the resource.
      type: Boolean
    - contextPath: GSuite.User.hashFunction
      description: Stores the hash format of the password property.
      type: String
    - contextPath: GSuite.User.archived
      description: Indicates if the user is archived.
      type: Boolean
    - contextPath: GSuite.User.fullName
      description: The user's full name formed by concatenating the first and last name values.
      type: String
    - contextPath: GSuite.User.lastLoginTime
      description: The last time the user logged into the user's account. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example, 2010-04-05T17:30:04+01:00.
      type: Date
    - contextPath: GSuite.User.deletionTime
      description: The time the user's account was deleted. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example 2010-04-05T17:30:04+01:00.
      type: Date
    - contextPath: GSuite.User.agreedToTerms
      description: This property is true if the user has completed an initial login and accepted the Terms of Service agreement.
      type: Boolean
    - contextPath: GSuite.User.suspensionReason
      description: The reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the suspended property is true.
      type: String
    - contextPath: GSuite.User.changePasswordAtNextLogin
      description: Indicates if the user is forced to change their password at next login. This setting doesn't apply when the user signs in via a third-party identity provider.
      type: Boolean
    - contextPath: GSuite.User.ims.type
      description: Type of the user's Instant Messenger (IM) account.
      type: Boolean
    - contextPath: GSuite.User.ims.customType
      description: If the IM type is custom, this property holds the custom type string.
      type: String
    - contextPath: GSuite.User.ims.protocol
      description: An IM protocol identifies the IM network. The value can be a custom network or the standard network.
      type: String
    - contextPath: GSuite.User.ims.customProtocol
      description: If the protocol value is custom_protocol, this property holds the custom protocol's string.
      type: String
    - contextPath: GSuite.User.ims.im
      description: The user's IM network ID.
      type: String
    - contextPath: GSuite.User.ims.primary
      description: If this is the user's primary IM. Only one entry in the IM list can have a value of true.
      type: Boolean
    - contextPath: GSuite.User.externalIds.value
      description: The value of the external ID.
      type: String
    - contextPath: GSuite.User.externalIds.type
      description: The type of the external ID.
      type: String
    - contextPath: GSuite.User.externalIds.customType
      description: If the external ID type is custom, this property holds the custom type.
      type: String
    - contextPath: GSuite.User.relations.value
      description: The name of the person the user is related to.
      type: String
    - contextPath: GSuite.User.relations.type
      description: The type of relationship.
      type: String
    - contextPath: GSuite.User.relations.customType
      description: If the value of type is custom, this property contains the custom type.
      type: String
    - contextPath: GSuite.User.organizations.name
      description: The name of the organization.
      type: String
    - contextPath: GSuite.User.organizations.title
      description: The user's title within the organization, for example 'member' or 'engineer'.
      type: String
    - contextPath: GSuite.User.organizations.primary
      description: Indicates if this is the user's primary organization. A user may only have one primary organization.
      type: Boolean
    - contextPath: GSuite.User.organizations.type
      description: The type of organization.
      type: String
    - contextPath: GSuite.User.organizations.customType
      description: If the value of type is custom, this property contains the custom type.
      type: String
    - contextPath: GSuite.User.organizations.department
      description: Specifies the department within the organization, such as 'sales' or 'engineering'.
      type: String
    - contextPath: GSuite.User.organizations.symbol
      description: Text string symbol of the organization. For example, the text symbol for Google is GOOG.
      type: String
    - contextPath: GSuite.User.organizations.location
      description: The physical location of the organization. This does not need to be a fully qualified address.
      type: String
    - contextPath: GSuite.User.organizations.description
      description: The description of the organization.
      type: String
    - contextPath: GSuite.User.organizations.domain
      description: The domain the organization belongs to.
      type: String
    - contextPath: GSuite.User.organizations.costCenter
      description: The cost center of the user's organization.
      type: String
    - contextPath: GSuite.User.organizations.fullTimeEquivalent
      description: The full-time equivalent millipercent within the organization (100000 = 100%).
      type: String
    - contextPath: GSuite.User.languages.languageCode
      description: Language Code. Should be used for storing Google III LanguageCode string representation for language. Illegal values cause SchemaException.
      type: String
    - contextPath: GSuite.User.languages.customLanguage
      description: Other language. A user can provide their own language name if there is no corresponding Google III language code. If this is set, LanguageCode can't be set.
      type: String
    - contextPath: GSuite.User.posixAccounts.username
      description: The username of the account.
      type: String
    - contextPath: GSuite.User.posixAccounts.uid
      description: The POSIX compliant user ID.
      type: Number
    - contextPath: GSuite.User.posixAccounts.gid
      description: The default group ID.
      type: Number
    - contextPath: GSuite.User.posixAccounts.homeDirectory
      description: The path to the home directory for this account.
      type: String
    - contextPath: GSuite.User.posixAccounts.shell
      description: The path to the login shell for this account.
      type: String
    - contextPath: GSuite.User.posixAccounts.gecos
      description: The GECOS (user information) for this account.
      type: String
    - contextPath: GSuite.User.posixAccounts.systemId
      description: System identifier for which account Username or UID applies to.
      type: String
    - contextPath: GSuite.User.posixAccounts.primary
      description: If this is the user's primary account within the SystemId.
      type: Boolean
    - contextPath: GSuite.User.posixAccounts.accountId
      description: A POSIX account field identifier.
      type: String
    - contextPath: GSuite.User.posixAccounts.operatingSystemType
      description: The operating system type for this account.
      type: String
    - contextPath: GSuite.User.sshPublicKeys.key
      description: An SSH public key.
      type: String
    - contextPath: GSuite.User.sshPublicKeys.expirationTimeUsec
      description: An expiration time in microseconds since epoch.
      type: String
    - contextPath: GSuite.User.sshPublicKeys.fingerprint
      description: A SHA-256 fingerprint of the SSH public key.
      type: String
    - contextPath: GSuite.User.aliases
      description: List of the user's alias email addresses.
      type: Unknown
    - contextPath: GSuite.User.nonEditableAliases
      description: List of the user's non-editable alias email addresses. These are typically outside the account's primary domain or sub-domain.
      type: Unknown
    - contextPath: GSuite.User.websites.value
      description: The URL of the website.
      type: String
    - contextPath: GSuite.User.websites.primary
      description: If this is the user's primary website or not.
      type: Boolean
    - contextPath: GSuite.User.websites.type
      description: The type or purpose of the website. For example, a website could be labeled as home or blog. Alternatively, an entry can have a custom type.
      type: String
    - contextPath: GSuite.User.websites.customType
      description: The custom type. Only used if the type is custom.
      type: String
    - contextPath: GSuite.User.locations.type
      description: The location type.
      type: String
    - contextPath: GSuite.User.locations.customType
      description: If the location type is custom, this property contains the custom value.
      type: String
    - contextPath: GSuite.User.locations.area
      description: Textual location. This is most useful for display purposes to concisely describe the location. For example, "Mountain View, CA", "Near Seattle".
      type: String
    - contextPath: GSuite.User.locations.buildingId
      description: Building identifier.
      type: String
    - contextPath: GSuite.User.locations.floorName
      description: Floor name/number.
      type: String
    - contextPath: GSuite.User.locations.floorSection
      description: Floor section. More specific location within the floor. For example, if a floor is divided into sections "A", "B", and "C", this field would identify one of those values.
      type: String
    - contextPath: GSuite.User.locations.deskCode
      description: Most specific textual code of individual desk location.
      type: String
    - contextPath: GSuite.User.keywords.type
      description: Each entry can have a type which indicates the standard type of that entry. For example, keyword could be of type occupation or outlook. In addition to the standard type, an entry can have a custom type and can give it any name. Such types should have the CUSTOM value as type and also have a customType value.
      type: String
    - contextPath: GSuite.User.keywords.customType
      description: Custom Type.
      type: String
    - contextPath: GSuite.User.keywords.value
      description: Keyword.
      type: String
    - contextPath: GSuite.User.isEnrolledIn2Sv
      description: Is enrolled in 2-step verification.
      type: Boolean
    - contextPath: GSuite.User.isEnforcedIn2Sv
      description: Is 2-step verification enforced.
      type: Boolean
    - contextPath: GSuite.User.includeInGlobalAddressList
      description: 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.
      type: Boolean
    - contextPath: GSuite.User.thumbnailPhotoUrl
      description: Photo URL of the user.
      type: String
    - contextPath: GSuite.User.thumbnailPhotoEtag
      description: ETag of the user's photo.
      type: String
    - contextPath: GSuite.User.customSchemas
      description: Custom fields of the user.
      type: Unknown
  - arguments:
    - description: The unique identifier of the customer's Google account.
      name: customer_id
    - description: A comma-separated list of unique device IDs of Chrome browser devices to move. A maximum of 600 browsers may be moved per request. To get resource_id, please use gsuite-chromebrowserdevice-list command.
      name: resource_ids
      isArray: true
      required: true
    - description: Destination organization unit to move devices to. Full path of the organizational unit or its ID prefixed with 'id:'.
      name: org_unit_path
      required: true
    description: To move Chrome browser devices assigned to an account from one organization unit to another.
    name: gsuite-chromebrowserdevice-move-ou
  - arguments:
    - description: The unique identifier of the customer's Google account.
      name: customer_id
    - description: The unique ID of the device.
      name: device_id
    - auto: PREDEFINED
      description: Field by which to order.
      name: order_by
      predefined:
      - id
      - last_sync
      - machine_name
      - extension_count
      - policy_count
      - os_version
      - last_signed_in_user
      - annotated_user
      - annotated_location
      - annotated_asset_id
      - notes
      - browser_version_channel
      - org_unit
      - enrollment_date
      - save_browsing_clickthrough
      - platform_major_version
      - last_activity
      - browser_version_sortable
      - os_version_sortable
    - description: The full path of the organizational unit or its unique ID.
      name: org_unit_path
    - auto: PREDEFINED
      description: Restrict information returned to a set of selected fields. "BASIC" - Includes only the basic metadata fields (i.e., the ones found in the columns of the admin console browser list as enumerated above). "FULL" - Includes all metadata fields (as enumerated above).
      name: projection
      predefined:
      - BASIC
      - FULL
    - description: Search string using the list page query language (Filter Query Language).
      name: query
    - auto: PREDEFINED
      description: "Whether to return results in ascending or descending order. Must be used with the orderBy parameter. Possible values are: ASCENDING, DESCENDING."
      name: sort_order
      predefined:
      - ASCENDING
      - DESCENDING
    - description: The maximum number of policy schemas to return. Default and maximum are 100.
      name: page_size
      defaultValue: '100'
    - description: Page token.
      name: page_token
    - description: Limit of number of devices. Default is 100.
      name: limit
      defaultValue: '50'
    description: Retrieve all Chrome browser devices for an account or a specific Chrome browser device.
    name: gsuite-chromebrowserdevice-list
    outputs:
    - contextPath: GSuite.ChromeBrowserDevices.nextPageToken
      description: The token of the next page.
      type: String
    - contextPath: GSuite.ChromeBrowserDevices.browserObjects.deviceId
      description: The unique Device ID for the device.
      type: String
    - contextPath: GSuite.ChromeBrowserDevices.browserObjects.kind
      description: The type of device.
      type: String
    - contextPath: GSuite.ChromeBrowserDevices.browserObjects.osPlatform
      description: operating system platform.
      type: String
    - contextPath: GSuite.ChromeBrowserDevices.browserObjects.osVersion
      description: Device operating system version.
      type: String
    - contextPath: GSuite.ChromeBrowserDevices.browserObjects.machineName
      description: Device machine name.
      type: String
    - contextPath: GSuite.ChromeBrowserDevices.browserObjects.lastRegistrationTime
      description: Device last registration time.
      type: String
    - contextPath: GSuite.ChromeBrowserDevices.browserObjects.lastActivityTime
      description: Device last activity time.
      type: String
    - contextPath: GSuite.ChromeBrowserDevices.browserObjects.osPlatformVersion
      description: Device operating system platform version.
      type: String
    - contextPath: GSuite.ChromeBrowserDevices.browserObjects.serialNumber
      description: Device serial number.
      type: String
    - contextPath: GSuite.ChromeBrowserDevices.browserObjects.virtualDeviceId
      description: Device virtual ID.
      type: String
    - contextPath: GSuite.ChromeBrowserDevices.browserObjects.orgUnitPath
      description: Device organizational unit path.
      type: String
    - contextPath: GSuite.ChromeBrowserDevices.browserObjects.deviceIdentifiersHistory
      description: Device identifier history.
      type: String
  - arguments:
    - description: ID of the Google Workspace account or literal 'my_customer' for the customer associated with the request.
      name: customer_id
    - auto: PREDEFINED
      description: In case of Group use “POST…groups:batchModify”. In case of OrgUnit use “POST…orgunits:batchModify”.
      name: target_type
      required: true
      predefined:
      - Group
      - OrgUnit
    - description: |-
        String as JSON representation of the ModifyGroupPolicyRequest
        {
            "requests": [
                {
                    "policyTargetKey": {
                        "targetResource": "orgunits/03ph8a2z1kjba6k",
                        "additionalTargetKeys": {
                            "app_id": "chrome:jldhpllghnbhlbpcmnajkpdmadaolakh"
                        }
                    },
                    "policyValue": {
                        "policySchema": "chrome.users.apps.InstallType",
                        "value": {
                            "appInstallType": "BLOCKED"
                        }
                    },
                    "updateMask": "appInstallType"
                }
           ]
        }
      name: policy_raw_json
    - description: Entry ID of the file that contains JSON representation of the ModifyGroupPolicyRequest.
      name: policy_field_json_entry_id
    - description: |-
        The target resource on which this policy is applied. The following resources are supported:

        Organizational Unit ("orgunits/{orgunit_id}")
        Group ("groups/{groupId}").

      name: target_resource
    - description: |-
        Map containing the additional target key name and value pairs used to further identify the target of the policy.

        A string containing a list of "key": "value" pairs. Example: ""name": "wrench", "mass": "1.3kg", "count": "3"".

      name: additional_target_keys
    - description: The fully qualified name of the policy schema that is being inherited.
      name: policy_schema
    - description: The value of the policy that is compatible with the schema that it is associated with Struct format.
      name: policy_value
    - description: |-
        Policy fields to update. Only fields in this mask will be updated; other fields in policyValue will be ignored (even if they have values). If a field is in this list it must have a value in 'policyValue'.
        This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".
        Field mask format.
      name: update_mask
    description: Modifies multiple policy values that are applied to a specific group. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in additionalTargetKeyNames, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.
    name: gsuite-policy-modify
  - arguments:
    - description: ID of the Google Workspace account or literal "my_customer" for the customer associated with the request.
      name: customer_id
    - description: The policy schema resource name to query. Required when asking for a specific policy.
      name: schema_name
    - description: The schema filter is used to find a particular schema based on fields like its resource name, description and additionalTargetKeyNames.
      name: filter
    - description: The maximum number of policy schemas to return. Defaults to 100 and has a maximum of 1000.
      name: page_size
    - description: Page token.
      name: page_token
    - description: Limit of policies returned.
      name: limit
      defaultValue: '50'
    description: Gets a list of policy schemas that match a specified filter value for a given customer.
    name: gsuite-policy-schemas-list
    outputs:
    - contextPath: GSuite.PolicySchema.nextPageToken
      description: The token of the next page.
      type: String
    - contextPath: GSuite.PolicySchema.policySchemaObjects
      description: A list of policy schemas objects.
      type: List
    - contextPath: GSuite.PolicySchema.policySchemaObjects.name
      description: Policy name.
      type: String
    - contextPath: GSuite.PolicySchema.policySchemaObjects.policyDescription
      description: Policy description.
      type: String
    - contextPath: GSuite.PolicySchema.policySchemaObjects.definition
      description: Policy definition.
      type: Array
    - contextPath: GSuite.PolicySchema.policySchemaObjects.definition.enumType
      description: Policy definition ENUM type.
      type: List
    - contextPath: GSuite.PolicySchema.policySchemaObjects.definition.messageType
      description: Policy definition message type.
      type: List
    - contextPath: GSuite.PolicySchema.policySchemaObjects.fieldDescriptions
      description: Policy file description.
      type: Array
    - contextPath: GSuite.PolicySchema.policySchemaObjects.fieldDescriptions.description
      description: Policy file object description.
      type: String
    - contextPath: GSuite.PolicySchema.policySchemaObjects.fieldDescriptions.field
      description: Policy file description field.
      type: String
    - contextPath: GSuite.PolicySchema.policySchemaObjects.fieldDescriptions.fieldConstraints
      description: Policy file description field constraints.
      type: Array
    - contextPath: GSuite.PolicySchema.policySchemaObjects.fieldDescriptions.knownValueDescriptions
      description: Policy file description known value description.
      type: List
    - contextPath: GSuite.PolicySchema.policySchemaObjects.notices
      description: Policy notice.
      type: List
    - contextPath: GSuite.PolicySchema.policySchemaObjects.notices.acknowledgementRequired
      description: Policy notice is acknowledgement required.
      type: Boolean
    - contextPath: GSuite.PolicySchema.policySchemaObjects.notices.field
      description: Policy notice field.
      type: String
    - contextPath: GSuite.PolicySchema.policySchemaObjects.notices.noticeMessage
      description: Policy notice message.
      type: String
    - contextPath: GSuite.PolicySchema.policySchemaObjects.notices.noticeValue
      description: Policy notice value.
      type: String
    - contextPath: GSuite.PolicySchema.policySchemaObjects.supportUri
      description: Policy support URI.
      type: String
    - contextPath: GSuite.PolicySchema.policySchemaObjects.schemaName
      description: Policy schema name.
      type: String
    - contextPath: GSuite.PolicySchema.policySchemaObjects.validTargetResources
      description: Policy valid target resources.
      type: List
    - contextPath: GSuite.PolicySchema.policySchemaObjects.policyApiLifecycle
      description: Policy API lifecycle.
      type: Array
    - contextPath: GSuite.PolicySchema.policySchemaObjects.policyApiLifecycle.policyApiLifecycleStage
      description: Policy API lifecycle stage.
      type: String
    - contextPath: GSuite.PolicySchema.policySchemaObjects.categoryTitle
      description: Policy category title.
      type: String
    - contextPath: GSuite.PolicySchema.policySchemaObjects.supportedPlatforms
      description: Policy supported platforms.
      type: String
  - arguments:
    - description: ID of the Google Workspace account or literal "my_customer" for the customer associated with the request.
      name: customer_id
    - description: 'Specify a schema name to view a particular schema, for example: chrome.users.ShowLogoutButton. See https://developers.google.com/chrome/policy/guides/policy-schemas for details on schema namespaces.'
      name: policy_schema_filter
      required: true
    - auto: PREDEFINED
      description: Type of target.
      name: target_type
      required: true
      predefined:
      - Group
      - OrgUnit
    - description: 'The target resource on which this policy is applied. The following resources are supported: Organizational Unit ("orgunits/{orgunit_id}") or Group ("groups/{groupId}").'
      name: target_resource
      required: true
    - description: 'Map (key: string, value: string) containing the additional target key name and value pairs used to further identify the target of the policy.'
      name: additional_target_keys
    - description: The maximum number of policy schemas to return. Defaults to 100 and has a maximum of 1000.
      name: page_size
    - description: Page token.
      name: page_token
    - description: Limit of policies returned.
      name: limit
      defaultValue: '50'
    description: Gets the resolved policy values for a list of policies that match a search query.
    name: gsuite-policy-resolve
    outputs:
    - contextPath: GSuite.Policy.nextPageToken
      description: The token of the next page.
      type: String
    - contextPath: GSuite.Policy.policyObject.targetKey.targetResource
      description: Policy target key target resource.
      type: String
    - contextPath: GSuite.Policy.policyObject.targetKey.additionalTargetKeys
      description: Policy target key additional target keys.
      type: String
    - contextPath: GSuite.Policy.policyObject.value.policySchema
      description: Policy schema value.
      type: String
    - contextPath: GSuite.Policy.policyObject.value.value
      description: Policy value.
      type: String
    - contextPath: GSuite.Policy.policyObject.sourceKey.targetResource
      description: Policy source key target resource.
      type: String
    - contextPath: GSuite.Policy.policyObject.addedSourceKey.targetResource
      description: Policy added source key target resource.
      type: String
  - arguments:
    - description: ID of the Google Workspace account or literal "my_customer" for the customer associated with the request.
      name: customer_id
    - description: |-
        String as JSON representation of the DeleteGroupPolicyRequest
        {
          "policyTargetKey": {
            object (PolicyTargetKey)
          },
          "policySchema": string
        }
      name: policy_raw_json
    - description: |-
        Entry Id of the file that contains JSON representation of the DeleteGroupPolicyRequest
        {
          "policyTargetKey": {
            object (PolicyTargetKey)
          },
          "policySchema": string
        }
      name: policy_field_json_entry_id
    - description: |-
        The target resource on which this policy is applied. The following resources are supported:

        Organizational Unit ("orgunits/{orgunit_id}")
        Group ("groups/{groupId}").
      name: target_resource
    - description: |-
        Map containing the additional target key name and value pairs used to further identify the target of the policy.

        An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
      name: additional_target_keys
    - description: The fully qualified name of the policy schema that is being inherited.
      name: policy_schema
    description: Delete multiple policy values that are applied to a specific group. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in additionalTargetKeyNames, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.
    name: gsuite-policy-groups-delete
  dockerimage: demisto/googleapi-python3:1.0.0.10182333
  runonce: false
  script: '-'
  subtype: python3
  type: python
tests:
- GSuiteAdmin-Test
- playbook-GSuiteAdmin-MobileDevices-Test
fromversion: 5.0.0