Last updated: 2021-02-22
Here’s a sample workflow to demonstrate the use of the GSuite Orchestration app to automate employee onboarding use case in an organization.

1. Create an event when a Service request is raised.
2. Followed by the condition to ensure the Service request is Employee Onboarding for Gsuite.
3. You can then pull in the App Node which will have the following configurations:
App Name: GSuite - Orch
App Action: Get User
Notes when Configuring Inputs:
1. admin\_view: Results include both administrator-only and domain-public fields for the user.
2. domain\_public: Results only include fields for the user that are publicly visible to other users in the domain.

4. To validate whether the user exists or not a condition node is added with system\_message Not Found or status code is 404.
5. If the user is not found you can then pull in the App Node which will have the following configurations:
App Name: GSuite - Orch
App Action: Create User

6. If the user creation is successful you can then pull in the App Node which will have the following configurations:
App Name: GSuite - Orch
App Action: Get Group Details

7. To validate whether the group exists or not a condition node is added with the status code as 200.
8. If the group is found you can then pull in the App Node which will have the following configurations:
App Name: GSuite - Orch
App Action: Assign Member to Group
Notes when Configuring Inputs:

9. To validate whether the user is assigned to a group or not a condition node is added to check whether the status code is in between 200 - 300.
10. If the workflow is successfully executed add a note using the action node.