How to configure SCIM from OKTA to Identity with a custom attribute
143
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 15:58 PM
Objective
This guide assumes you have already configured SAML application on OKTA side, have configured trust between Identity and OKTA (Add "External Identity Provider" in Identity), and also configured basic SCIM from OKTA to Identity successfully so we will just briefly go through the basic pre-req steps first:
-
- Configure external IDP (configure SAML application in OKTA side and configure the trust in External Identity provider section in Identity side)
- Check to confirm user can log in successfully (the user will be created as federated user currently)
- After you see the user created you can delete this user from Identity (the user will be created later again by SCIM as a Idira Cloud Directory user)
- Configure SCIM from OKTA as detailed in Idira documentation :
- Create a service user
- Add a role for the service user
- Create an OAuth2 Client App
- Create a bearer token and save it for later use
- Add the user suffix(es) to Idira Identity
- Configure Okta for SCIM provisioning
- Configure the external IDP configuration to use Idira Cloud Directory
Environment
24.1;24.2;24.3;24.4;24.5;24.6;24.7;24.8;24.9;24.10;24.11;24.12;25.1;25.2;25.3;25.4;25.6;25.7;25.8;25.9;25.10;25.11 Identity SCIM Server - RestAPI;Provisioning
Procedure
Now after SCIM works fine these are the steps to configure custom Attribute to be mapped from OKTA to Identity (in case attribute does not exist on CyberArk side and you want to map it to the user which comes from OKTA):
- For example, you want to map "user_site" attribute which is coming from OKTA to "user_country" attribute in Identify but "user_country" attribute does not exist in Identity.
- In this case you will need to create custom attribute in CyberArk and also to create this custom attribute in OKTA and then to map OKTA attribute to the new custom attribute.
Practical Steps:
- First create the custom Attribute in CyberArk- under settings--> Customization --> Additional attributes
- Add the custom attribute with any name you want. Note, the name must contain an underscore "_” - in this example we called it "user_country"
- Now go to Okta and open the SAML application you created
- Under "directory" go to "Profile Editor"
- Click "Add Attribute"
- Put the following values as detailed bellow:
- Display name - any name you want
- Variable name - put the custom attribute exactly how you created it in identity
- External name - put the custom attribute exactly how you created it in identity
- External namespace - put the schema - in case of a custom attributes it is "urn:scim:schemas:extension:custom:2.0"
- Click save
- Still in the Profile Editor screen go to the "mappings"
- On the top of the screen select "Okta Users to .."
- Scroll down to the bottom
- Find your custom attribute that you have just crated (for example "user_country")
- In the left column of the new attribute, click on the field and start typing the name of the attribute in okta that you want to map (for example "user_site") to the new custom attribute in identity:
- Save the mapping
- In the "preview" field select one of the users that assign to the SAML application
- Click "preview"
- You will see now all the green tiles which represent all the values which has been retrieved for all the mapping attribute you configured, for example you can see that "user_site" got the value "Israel" so it's a correct data so we are ok and can continue with this mapping
- Click "Exit preview"
- Save mapping
- Go to Identity and Verify all the attribute you configured exist now in the user in Identity under "additional attribute"
- If it's not working in the first place, remove the assigned group from the application in Okta and add it again
- Note, in addition to "custom" schema for a custom attribute, CyberArk Identity has also "Core schema" and "Enterprise schema" so if you want to map Okta attribute into core or enterprise attribute in identity, you will need to specify the correct schema in Identity (see here for more details)