Last updated: 2021-02-23
Here’s a sample workflow to demonstrate the use of the Onelogin Orchestration app to automate employee onboarding 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 Onelogin.
3. You can then pull in the App Node which will have the following configurations:
App Name: Onelogin - Orch
App Action: Get User Details
Notes when Configuring Inputs:

4. To validate the existence of a user, a condition node is added with system\_message does not exist.
5. Next, pull in and configure Reader Node to read the ‘Group and Role Mappings’ to get group\_id and role based on the Department and Location selected in Service Request Form.

Note: For the above Reader Node field we have used a Custom Object named Group and Role Mappings. Below is the description of the same.
1. The object ‘Group and Role Mappings’ will be used to store group\_id and roles based on the Department and Location that the employee is joining. Here are the fields:
| Department |
| Location |
| Group Mappings |
| Role Mappings |

6. Next, pull in an action node for adding a note to the ticket for the group\_id selected based on Department and Location.
7. You can then pull in the App Node which will have the following configurations:
App Name: Onelogin - Orch
App Action: Create User
Notes when Configuring Inputs:

8. To validate whether the user-created or not a condition node is added with the status code is 200.
9. If the user creation is successful you can then pull in the App Node which will have the following configurations:
App Name: Onelogin - Orch
App Action: Add User Roles
Notes when Configuring Inputs:

10. To validate whether the user-created or not a condition node is added with the status code is 200.
11. If the workflow is successfully executed add a note using an action node.