Let Oomnitza be your single source of truth!
You'll get visibility of your users as data from Mosyle is automatically transformed into consumable information and actionable insights.
Connect Oomnitza and Mosyle in minutes
You'll get visibility of your Mosyle users by creating configurable workflows to automate tasks such as:
-
- Workflows for creating users'
- Workflows for getting a user's information by Email or User ID
- Workflows for updating users'
- Workflows for retrieving the SaaS user role and for deactivating SaaS users in Oomnitza
Before you start
Please note that the Oomnitza integration with Mosyle has updated its authorization process. For integrations created from October 9, 2023, onwards, Session authentication is required instead of the previously supported basic authentication.
When adding workflows, select the Session Based alternatives.
For details on adding Session-based credentials to Oomnitza, see Adding your Mosyle credentials to Oomnitza.
We recommend that you also create the extended integration for Mosyle users. You can use the information retrieved in these integrations to trigger workflows that can create, update, get user details, and much more.
Creating workflows
Create user workflows
To create a user workflow, you must complete these steps:
- Click Configuration > Workflows
- Click Add (+) and select Users from the Objects list.
- Drag and drop the API block onto the Sandbox.
- Click Edit on the API block and enter Mosyle in the search field.
- Select a preset:
- To choose a preset, click the forward arrow (>).
- Select the credentials that you created in Adding your Mosyle credentials to Oomnitza.
- Supply your Mosyle Access Token.
- Configure the API Block following the preset instructions below, and save your changes.
- Edit the Begin Block and add rules to trigger the workflow. For example, if you set the Actions to Schedule and add a rule so that the Email Equals <EmployeeEmail> you can trigger a workflow to fetch a user matching a certain name on a specific date. Refer to Using the Begin block.
- Connect the Blocks.
- Save, validate, and activate your workflow.
Using the Create User Session Based preset
The Create User Session Based preset enables you to create a Mosyle user. When you select this preset you need to supply the following information:
- User ID: The Mosyle User ID.
- User Name: The name of the user.
- User Type: Can be either
ADMINGROUP_ADMINorENDUSER.
You can configure the message payload by selecting Advanced Mode.
- In the API block window, click the Advanced Mode button located in the upper right of the window.
- Select the Body tab. You can add fields that will be used in the request payload. For additional fields that can be used in the request payload refer to the below table.
- Select the Response tab. You can map the entire response by placing
{{response}}in the Response field and mapping it to a custom long text Oomnitza field, such as API Response. For information on creating custom fields, see Creating Custom Fields in Oomnitza.
| Key | Type | Required |
| user_id | string | Required |
| name | string | Required |
| type |
|
Required |
| string | Optional | |
| welcome_email | numeric. Select either (0, 1). 1 sends a welcome email after the user is created. | Optional |
Using the Update User Session Based preset
The Update User Session Based preset enables you to update or modify a Mosyle user by their Mosyle User ID. You can configure the message payload by selecting Advanced Mode.
- In the API block window, click the Advanced Mode button located in the upper right of the window.
- Select the Body tab. You will notice that the Mosyle User ID is referenced in the property
{{mosyle_user_id}}. Follow the mapping steps in Creating custom mappings so that this property exists in Oomnitza and is populated with information before you run this workflow. Alternatively, replace the property with the user id and surround with double quotation marks: for example"iduser": "123456". For additional fields that can be used in the request payload refer to the below table. - Select the Response tab. You can map the entire response by placing
{{response}}in the Response field and mapping it to a custom long text Oomnitza field, such as API Response. For information on creating custom fields, see Creating Custom Fields in Oomnitza.
| Key | Type | Required |
| iduser | string | Required |
| name | string | Optional |
| identifier | string | Optional |
| string | Optional | |
| managedappleid | string | Optional |
| type |
|
Optional |
Using the User Details by Email Session Based preset
The User Details by Email Session Based preset enables you to get a Mosyle user's details using their Email. You can configure the message payload by selecting Advanced Mode.
- In the API block window, click the Advanced Mode button located in the upper right of the window.
- Select the Body tab. You will notice that the Mosyle User Email is referenced in the property
{{email}}. -
Select the Response tab. You can map the entire response by placing
{{response}}in the Response field and mapping it to a custom long text Oomnitza field, such as API Response. Once you have the entire response, you should then map individual JSON values to custom fields, as per the example below. For information on creating custom fields, see Creating Custom Fields in Oomnitza.
Using the User Details by User ID Session Based preset
The User Details by User ID Session Based preset enables you to fetch a Mosyle user by their Mosyle User ID.
When you select this preset you need to supply the following information:
- User ID: The Mosyle User ID. You can call the value in the workflow by entering:
{{mosyle_user_id}}.
You can configure the message payload by selecting Advanced Mode.
- In the API block window, click the Advanced Mode button located in the upper right of the window.
- Select the Response tab. Select the Response tab. You can map the entire response by placing
{{response}}in the Response field and mapping it to a custom long text Oomnitza field, such as API Response.
Reference articles for workflows
Create SaaS user workflows
You can create a Saas User workflow in Oomnitza using the Mosyle User Role preset. This preset supplies you with the Role of your SaaS users.
Prerequisites
Before you create a SaaS user workflow, you should have already run your extended user integration and selected User plus SaaS User to populate the software entry in the Software > SaaS menu.
To create a Saas User workflow using the Mosyle User Role preset, complete the following steps:
- Click Configuration > Workflows
- Click Add (+) and select Software SaaS Users from the list.
- Enter the name and a description of the workflow.
- Edit the Begin block by adding the rules that will trigger the workflow. For further information see SaaS User Roles.
- Click the Blocks tab, and drag and drop the SaaS User Role retrieval block onto the canvas.
- Click the Edit icon.
- Enter Mosyle in the search field and choose the Mosyle User Role Session Based preset.
- Click the right arrow >.
- Select the credentials that you created in Adding your Mosyle credentials to Oomnitza.
- Supply your Mosyle Access Token.
- Select the Deactivate User checkbox to deactivate the SaaS user in SaaS > Mosyle > Users if they are not found in your Mosyle instance.
- Click SAVE.
- Connect the blocks.
- Save, validate, and activate your workflow.
To view active Mosyle users in the SaaS Users UI, complete the following steps:
- Click Software from the menu.
- Select the Saas tab, and select your software entry for Mosyle.
- Click Users in the side pane.
- The Role column will be populated with the user details to confirm that this user has been found in your Mosyle SaaS.
Comments
0 comments
Please sign in to leave a comment.