> For the complete documentation index, see [llms.txt](https://guides.mangoapps.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.mangoapps.com/integrations-guide/single-sign-on/sso-integrations-by-provider/sso-integrations-for-okta/scim-setup-for-okta.md).

# SCIM Setup for Okta

### Overview

Companies using Okta can easily integrate with MangoApps, allowing automatic creation of user accounts within MangoApps whenever a new user is added to Okta, eliminating the need for manual account creation, saving time, and reducing errors between applications.&#x20;

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FL9CZXAjrN3vVWJQG8EVx%2Frsjysdku.png?alt=media&amp;token=3c6c004d-2715-4889-9057-c3cb00e5b818" alt="" width="375"><figcaption></figcaption></figure>

This integration offers several benefits: automated user provisioning streamlines account creation and deactivation; simplified user updates ensure any changes made to user information in Okta, such as email address, name, or department, are automatically reflected in MangoApps through SCIM; and improved user deactivation enables Okta to automatically deactivate a user's account in MangoApps through SCIM when a user leaves the organization or access needs to be revoked, helping maintain data security and compliance.

***

### Supported Features

#### SAML :

* SP-initiated SSO
* IdP-initiated SSO
* JIT (Just In Time) Provisioning

#### SCIM:

* Create users
* Update user attributes
* Deactivate users

***

### Prerequisite Roles

**Okta Administrator:** The user performing the configuration from the Okta side.

**MangoApps Administrator:** The user performing the configuration from the MangoApps side.

**Supported Okta Plan:** Workforce Identity Cloud.

***

### How to Configure SAML 2.0 for MangoApps

#### Create App Integration in Okta

Login to the Okta portal using administrator credentials and navigate to the Admin tab. From here, access the **Applications** tab from the left-hand side panel.

Click the **Browse App Catalog** button along the center toolbar.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2F993AACuXEBuB6l9DEzko%2Fdtykdmtjrhe.png?alt=media&amp;token=ff4e8e76-91f0-4b1a-805a-7ba169e5dd55" alt="" width="563"><figcaption></figcaption></figure>

Under the **Browse App Catalog** page, search for the **MangoApps** application. Select the MangoApps application and click on the **Add Integration** button.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FYKFnEFlJbsPFBM9FEzCq%2Fshdrtgn.png?alt=media&amp;token=f910d04d-4159-4710-bce2-4d2a965d00a9" alt="" width="563"><figcaption></figcaption></figure>

Add the application label and domain URL, then click on the **Next** button. On the next page, click the **Done** button to save the application. (If your domain is `https://okta.mangoapps.com/u`, enter: `okta.mangoapps.com`)

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FyZ6iReeMnWjm5BJaLmn0%2Faerhtsnm.png?alt=media&amp;token=25025cd8-61af-4718-8491-68b7e81fcddc" alt="" width="563"><figcaption></figcaption></figure>

Once the app is successfully created, switch to the **Sign On** tab and copy the metadata URL. This will be required for the MangoApps side configuration.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FTrtzIZEFKUhwuvZDcDBL%2Fbesrndr.png?alt=media&amp;token=fdecfc9d-4c0f-4049-8412-283535ab062e" alt="" width="563"><figcaption></figcaption></figure>

***

#### Enable Integration in MangoApps

Login to the MangoApps portal using admin credentials and access the **SSO** menu option within the **Admin Portal**.

Select the **Connections** section and switch to the **SAML** tab.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FYtSPLgjrY0sJdTzL6jQn%2F15-07-2024-11-11-27.png?alt=media&amp;token=18a43512-e3a2-4b2c-9ace-bf988fa7b8b4" alt="" width="563"><figcaption></figcaption></figure>

Click the **Add SSO Connection** option then select **Okta** as the identity provider from the dropdown option. Name the application.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FHexe5QH5A3jHs7089TKO%2Fnyhkmdthm.png?alt=media&amp;token=545b892c-81b4-499b-a29d-b42bdc184369" alt="" width="563"><figcaption></figcaption></figure>

Add the metadata URL to the **Metadata** section and click on the **Read from URL** button.

Click the **Read from Metadata URL** button to read/add the required configuration fields in MangoApps. Afterwards, click on the **Save** button.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FmBYoDDn5D1eqE7DV399k%2Faerhaerhaer.png?alt=media&amp;token=d5732e94-3cce-4285-8083-cf48b67817bf" alt=""><figcaption></figcaption></figure>

***

#### Enable SCIM Provisioning in MangoApps

Login to MangoApps with as an admin user. Navigate to the **SSO** section within the **Admin Portal** and switch to the **SAML** tab.

Select the newly created Okta application and click **Configure User Mappings**.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2F9z1ninLXHdFF6YEjB5tm%2Ff%2Cuymdnysbtrve.png?alt=media&amp;token=db7ccaf7-9d94-4247-a2b2-441d811e0351" alt="" width="563"><figcaption></figcaption></figure>

Under configure user mapping, select **SAML Provisioning with SCIM** and switch to OAuth 2 connection.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FK53fd8XPiPdPflUlLSye%2Fstrhsrte.png?alt=media&amp;token=8d07c385-0f31-47c0-9699-4801ea7e5626" alt="" width="563"><figcaption></figcaption></figure>

Copy the **Base URL** to use while enabling **SCIM in Okta** in the below steps and save the configuration.

***

#### Enable SCIM Provisioning from Okta

Login to Okta using administrator credentials and **navigate**. Access the **Applications** tab from the **Admin Portal**. Select the application created for MangoApps integration and navigate to the **Provisioning** tab.

Click the **Configure API Integration** button.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FjceVdm8g8H0EbBd07Q8I%2Frthea.png?alt=media&amp;token=e550390b-a65d-4b3c-870f-ef183b437400" alt="" width="563"><figcaption></figcaption></figure>

Select the **Enable API Integration** box (you may need to scroll down) and add the **Base URL** (found in the above steps).

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FefkvYGQ8hqbrYSYUF1tD%2Freshtrjdsz.png?alt=media&amp;token=60eedb8f-e73c-4856-8b43-1a637ed06ba2" alt="" width="563"><figcaption></figcaption></figure>

Click the **Authenticate with MangoApps** button to authenticate the URL. Upon successful authentication, save the settings.

Once the setting has been saved, navigate back to the **Provisioning** tab and click on the **Edit** button under the **To App** section.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2Fb3a01XaSEwlr0cDmUxiw%2Fsrtehsrdgs.png?alt=media&amp;token=2aa56cbb-e33b-4717-9121-2a4aac5d3b0a" alt="" width="563"><figcaption></figcaption></figure>

Enable all the required provisioning for the application and save the settings.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FNm0aTqNhT2BtE7bfRNGs%2Fhsrthsrwfawg.png?alt=media&amp;token=1b90c2d3-31db-4fcc-98a3-57e5be8d950c" alt="" width="563"><figcaption></figcaption></figure>

After the setting has been saved, switch to the application again and select the **Assignments** tab to assign users manually or using groups.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FL5bO5SGfBUnohJhXQzXs%2Fhdjtydresw.png?alt=media&amp;token=2bb90cfd-4be5-4297-8d37-b6291128f510" alt="" width="563"><figcaption></figcaption></figure>

The assigned user account(s) should now be created within the MangoApps system.

<figure><img src="https://1627138357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjKbJ2ssjhlUZRcGOXW%2Fuploads%2FstaDJRo7WKWMiWrgmfsb%2F16-07-2024-10-11-43.png?alt=media&amp;token=ce243f42-c3ac-42d5-a0b8-b9140c26f46e" alt="" width="563"><figcaption></figcaption></figure>

***

### End User Experience

On successful Okta-MangoApps integration, user accounts will be automatically created in the MangoApps system.

#### Attribute Mapping

**Department:** When a user's department is updated, they will be assigned membership in the new department in addition to their existing department group affiliation.

***

### Testing Considerations

An administrator can do the following to test the integration:

* Verify authentication credentials configured on Okta for SCIM provisioning.
* Verify automatic user creation.
* Verify automatic profile updates.
* Verify automatic user deactivation/reactivation.

***

### Security Considerations

Okta admins should only share the metadata URL with the admin of MangoApps.

The MangoApps admin should only share the SCIM OAuth 2 base URL with the admin of Okta.

***

### Rollout Recommendations

Enable this integration in a sandbox environment and validate user creation and profile updates.&#x20;
