Example: setting up custom mapping for OneLogin
Example of configuring Snyk user roles after setting up OneLogin SSO
Example: setting up custom mapping for OneLogin
This example shows how to configure user roles after you have configured OneLogin SSO for Snyk.
You need permissions in OneLogin to create roles and edit application parameters, and a Snyk contact who can turn on custom mapping for your Group. Self-serve SSO does not accommodate custom mapping, so any step on the Snyk side must be performed by your Snyk contact. See Custom mapping for the requirements and the role assertion format.
OneLogin has the concept of groups and roles. However, OneLogin does not support the assignment of multiple groups to a user.
Therefore, roles will be assigned to users directly instead of indirectly through groups.
In OneLogin, go to the Users and then to the Roles section and create the roles following the naming convention outlined for custom mapping. Each role should have the Snyk SAML app enabled as the role app. Assign the users to their roles as needed.

To transfer the user roles in the SAML assertion to Snyk, go to Applications, select the Snyk SAML app, and select the Parameters section on the left.
Create a new parameter named roles, with both checkboxes Include in SAML assertion and Multi-value parameter checked. Save.\
On the next screen, select User Roles as the default value and Semicolon Delimited Output (Multi-value output). Ensure that the checkbox Include in SAML assertion is checked. Save.
Custom mapping is not active until Snyk turns it on for your Group. After Snyk confirms it is active, the mapping works when a user assigned to a Snyk role in OneLogin logs in and receives that role in Snyk.
Last updated
Was this helpful?

