# OneLogin with OpenID

## Add IAM on the App Settings Page

1. Navigate to the **App Settings** page in the Immuta console and click the **Add IAM** button.
2. Complete the **Display Name** field and select **OpenID** from the **Identity Provider Type** dropdown.
3. Adjust **Default Permissions** granted to users by selecting from the list in this dropdown menu.

## Add OpenID Connect in OneLogin

1. Navigate to OneLogin, click **Administration**, and then select **Applications** from the Applications menu.
2. Click **Add App** in the top right corner of the screen. Search for and select **OpenID Connect (OIDC)**.
3. Complete the **Display Name** field and click **Save**.

## Complete the Configuration

1. From the **Identity and Access Management** window in your Immuta tenant, copy the **SSO Callback URL** to your clipboard.
2. Return to OneLogin, click the **Configuration** tab in the left panel, and paste the URL in the **Login Url** and **Redirect URI's** fields.
3. Click **Save** in the top right corner of this screen.
4. Click the **SSO** tab in the left panel of your OneLogin account. Copy the **Client ID** and the **Client Secret** and paste these values in the corresponding fields in your Immuta tenant.
5. Then, right click the **Well-known Configuration** text from the **SSO** tab of OneLogin, and copy the link to your clipboard.
6. Return to your Immuta tenant, and paste this link in the **Discover URL** field; pasting this link here prevents you from having to manually fill out the rest of the form.
7. Confirm email as the **User ID claim**, and fill out the **Scopes** section.
8. Return to OneLogin and scroll to the **Token Endpoint** section. Select **POST** from the **Authentication Method** dropdown.
9. Click **Save**.
10. Return to your Immuta console, opt to **Enable SSL** and **Enable SCIM support for OpenID**.
    * Copy the SCIM URL and API key generated, and then [save your changes](#user-content-fn-1)[^1].
    * Validate the URL and credentials within the identity provider application.
11. Opt to complete the **Profile Schema** section.
12. Opt to **Allow Identity Provider Initiated Single Sign On**, **External Groups and Attributes Endpoint**, and **Migrate Users**.
13. Click **Test Connection**. Once the connection is successful, click **Test User Login**.
14. Click **Save**.

{% hint style="warning" %}
**Multiple user accounts cannot have the same email address**

If you register user accounts that have the same email address as an existing Immuta user account, the email field for the subsequent user accounts will be left empty. For more details, see the [Identity managers reference guide](https://documentation.immuta.com/2024.2/people/reference-guides/identity-managers#limitations).
{% endhint %}

[^1]: You can either finish configuring your IAM on the app settings page before clicking save, or you can save now and return to the app settings page to edit the IAM configuration after saving.
