> ## Documentation Index
> Fetch the complete documentation index at: https://statsig-4b2ff144-mintlify-java-core-statsig-options-migrati.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Okta SCIM Team Management

## Import Existing Statsig Teams

<Note>
  Teams are specific Statsig groups that exist within projects. They are not shared across projects. They also have two possible roles: `Admin` and `Member`.
</Note>

## Setup

* Ensure you have some teams created in Statsig.
* Navigate to the Statsig Project and create a team if you have none.

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-java-core-statsig-options-migrati/C_0on3gdKQ6kSOqc/images/okta_scim_steps/team_steps/step1-create-team.png?fit=max&auto=format&n=C_0on3gdKQ6kSOqc&q=85&s=f9523c623b335d217c29297465027377" alt="img" width="3296" height="1824" data-path="images/okta_scim_steps/team_steps/step1-create-team.png" />
</Frame>

## Import Existing Groups

* In Okta, go to the Statsig app's "Import" tab
* Click "Import Now" to fetch existing Statsig users, groups, and teams
* After importing, you should see the group in your Okta groups following the format `Statsig-ProjectName-TeamName-RoleName`.

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-java-core-statsig-options-migrati/C_0on3gdKQ6kSOqc/images/okta_scim_steps/team_steps/step2-verify-import.png?fit=max&auto=format&n=C_0on3gdKQ6kSOqc&q=85&s=5222d0bd4ffc43ac58d311045b4391a8" alt="img" width="1960" height="838" data-path="images/okta_scim_steps/team_steps/step2-verify-import.png" />
</Frame>

## Create a Mapping Group

* To push a group of Okta users to a Statsig team, you must first create a mapping group.
* This group will contain the Okta members which will be part of the Team x Role Group.

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-java-core-statsig-options-migrati/C_0on3gdKQ6kSOqc/images/okta_scim_steps/team_steps/step3-create-mapping-group.png?fit=max&auto=format&n=C_0on3gdKQ6kSOqc&q=85&s=588e7a44e06592a9ee28b2436da321cd" alt="img" width="2042" height="1318" data-path="images/okta_scim_steps/team_steps/step3-create-mapping-group.png" />
</Frame>

## Push Teams to Statsig

1. In Okta, go to the Statsig Integration's "Push Teams" tab and select "Push Groups". Then pick the mapping group created in the previous step.
   <Frame>
     <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-java-core-statsig-options-migrati/C_0on3gdKQ6kSOqc/images/okta_scim_steps/team_steps/step4-push-teams-1.png?fit=max&auto=format&n=C_0on3gdKQ6kSOqc&q=85&s=34c0602316afe23aeb1d35e40282ed8c" alt="img" width="1970" height="1146" data-path="images/okta_scim_steps/team_steps/step4-push-teams-1.png" />
   </Frame>

2. Change the Match result & push action to Link group. Then select the Statsig team you want to push to. It should follow the format `Statsig-ProjectName-TeamName-RoleName`.

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-java-core-statsig-options-migrati/C_0on3gdKQ6kSOqc/images/okta_scim_steps/team_steps/step4-push-teams-2.png?fit=max&auto=format&n=C_0on3gdKQ6kSOqc&q=85&s=4b053da0d6f8bc5353adc29e5f667382" alt="img" width="1888" height="1458" data-path="images/okta_scim_steps/team_steps/step4-push-teams-2.png" />
</Frame>

3. When you are finished setting up the push, click "Save".

## Verify the Push

* Navigate to the Statsig Project and verify that the team has the new members.
* This could take some time for Okta to push the members to the team.

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-java-core-statsig-options-migrati/C_0on3gdKQ6kSOqc/images/okta_scim_steps/team_steps/step5-verify-push.png?fit=max&auto=format&n=C_0on3gdKQ6kSOqc&q=85&s=5f8acef1b1a98b058d411fb58e1e1563" alt="img" width="3266" height="1408" data-path="images/okta_scim_steps/team_steps/step5-verify-push.png" />
</Frame>

## Delete the Team

* On Okta, navigate to push groups and find the pushed group that maps to the Statsig team.
* Click the push status section and select "Unlink Group".

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-java-core-statsig-options-migrati/C_0on3gdKQ6kSOqc/images/okta_scim_steps/team_steps/step6-delete-1.png?fit=max&auto=format&n=C_0on3gdKQ6kSOqc&q=85&s=56fa50d578572a908d7c5b712b20f06a" alt="img" width="1508" height="696" data-path="images/okta_scim_steps/team_steps/step6-delete-1.png" />
</Frame>

* When prompted to delete the group or leave it in the app, select "Delete".
* After Okta pushes the deletion, the team should be deleted from Statsig. This may take a few minutes to complete.

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-java-core-statsig-options-migrati/C_0on3gdKQ6kSOqc/images/okta_scim_steps/team_steps/step6-delete-2.png?fit=max&auto=format&n=C_0on3gdKQ6kSOqc&q=85&s=d5dc2d24be3d434f8f3e3feb03d7673d" alt="img" width="1108" height="842" data-path="images/okta_scim_steps/team_steps/step6-delete-2.png" />
</Frame>

## Optional: Create a Team Via SCIM

* Find an existing Okta group with the members for a new Statsig Team.
* Navigate to Push Groups and Select "Push Groups".
* Select the group you want to push to Statsig.
* Change the Match result & push action to Create Group.
* The naming for this group must match the format `Statsig-ProjectName-TeamName-Member`.

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-java-core-statsig-options-migrati/C_0on3gdKQ6kSOqc/images/okta_scim_steps/team_steps/step7-create-1.png?fit=max&auto=format&n=C_0on3gdKQ6kSOqc&q=85&s=807a307d44bc4749ee677e6332c19841" alt="img" width="1944" height="982" data-path="images/okta_scim_steps/team_steps/step7-create-1.png" />
</Frame>

* When you are finished setting up the push, click "Save".
* Afterwards, you should see the new team in the Statsig Project you specified.

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-java-core-statsig-options-migrati/C_0on3gdKQ6kSOqc/images/okta_scim_steps/team_steps/step7-create-2.png?fit=max&auto=format&n=C_0on3gdKQ6kSOqc&q=85&s=f836c47b91a10507480955520c6cf785" alt="img" width="3272" height="1742" data-path="images/okta_scim_steps/team_steps/step7-create-2.png" />
</Frame>
