Last updated: 2021-02-23

Source: https://support.freshservice.com/support/solutions/articles/50000003327-sample-use-case-for-onelogin-orchestration-app-employee-onboarding

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:

  • username: It is the user’s OneLogin account username.
  • 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:

  • email - It is theuser’s Onelogin account email address.
  • firstname - It is theuser’s first name.
  • lastname - It is theuser’s last name.
  • username - It is theuser’s username.
  • company - It is theuser’s company or organization name.
  • department - It is theuser’s department name.
  • group\_id - It is the Id of the group in which the user needs to be added. You can get it from the reader node via Readers placeholder.
  • 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:

  • username - It is the user’s OneLogin account username. You can get it in the response of Create User action and pass it via placeholder as shown below.
  • role \- It is the name of the role to be given which is to be assigned to the User.  You can get it from the reader node via Readers placeholder.
  • 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.