G Suite Admin
The G Suite Admin node allows you to automate work in G Suite Admin, and integrate G Suite Admin with other applications. Robbot Automation has built-in support for a wide range of G Suite Admin credentials, including creating, updating, deleting, and getting users, and groups.
On this page, you'll find a list of operations the G Suite Admin node supports and links to more resources.
!!! note "Credentials" Refer to G Suite Admin credentials for guidance on setting up authentication.
!!! note "Examples and templates" For usage examples and templates to help you get started, take a look at Robbot Automation's G Suite Admin list.
Basic Operations
- Group
- Create a group
- Delete a group
- Get a group
- Get all groups
- Update a group
- User
- Create a user
- Delete a user
- Get a user
- Get all users
- Update a user
Example Usage
This workflow allows you to create, update, and get a user using the G Suite Admin node. You can also find the workflow on Robbot Automation. This example usage workflow uses the following nodes.
1. Start node
The Start node exists by default when you create a new workflow.
2. G Suite Admin node (create: user)
This node will create a user in G Suite with the following information: first name, last name, password, domain, and username.
- First of all, you'll have to enter credentials for the G Suite Admin node. You can find out how to do that here.
- Enter the first name of the user in the First Name field.
- Enter the last name of the user in the Last Name field.
- Enter a password for the user in the Password field.
- Select the domain from the Domain dropdown list.
- Enter the username for the user in the Username field.
- Click on Save to run the workflow.
3. G Suite Admin1 node (update: user)
This node will get the User ID from the previous node and update the user's last name to Nate
.
- Select the credentials that you entered in the previous G Suite Admin node.
- Select 'Update' from the Operation dropdown list.
- Click on the gears icon next to the User ID field and click on Add Expression.
- Select the following in the Variable Selector section: Nodes > G Suite Admin > Output Data > JSON > id. You can also add the following expression:
{{$node["G Suite Admin"].json["id"]}}
. - Click on the Add Field button and select 'Last Name' from the dropdown list.
- Enter the last name in the Last Name field.
- Click on Save to run the workflow.
4. G Suite Admin2 (get: user)
This node will get the information of the user we created in the G Suite Admin node.
- Select the credentials that you entered in the previous G Suite Admin node.
- Select 'Get' from the Operation dropdown list.
- Click on the gears icon next to the User ID field and click on Add Expression.
- Select the following in the Variable Selector section: Nodes > G Suite Admin > Output Data > JSON > id. You can also add the following expression:
{{$node["G Suite Admin"].json["id"]}}
. - Click on Save to run the workflow.
FAQs
What are the different ways to project a user's information?
There are three different ways to project a user's information:
- Basic: Does not include any custom fields.
- Custom: Includes the custom fields from schemas in customField.
- Full: Include all the fields associated with the user.
You can include custom fields by following the steps mentioned below.
- Select 'Custom' from the Projection dropdown list.
- Click on the Add Options button and select 'Custom Schemas' from the dropdown list.
- Select the schema names you want to include from the Custom Schemas dropdown list.