<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
How to Add Multi-value Roles in SCIM Cloud Integration
API Access Management
Overview

Currently, the Okta SCIM Template has a default roles attribute configured to list roles in an array format [ role1, role2].

Roles 


This support article will walk through achieving the following:

"urn:ietf:params:scim:schemas:core:2.0:User": {
        "roles": [
            {
                "type": "LICENSED_USER",
                "value": "LICENSED_USER"
            },
            {
                "type": "GROUP_ADMIN",
                "value": "GROUP_ADMIN"
            }
        ],
      },

 

Applies To
  • Setting up multi-value roles in SCIM Cloud Provisioning for the purpose of role-based access in the downstream application.
Solution
  1. Create a custom claim attribute in Okta User Profile (under Profile Editor > User (default)).

Add attribute

  1. Create a custom attribute on the SCIM App (under Profile Editor > SCIM App).
    • For external user add roles.^[type=='LICENSED_USER'].value.
    • For external namespace add urn:ietf:params:scim:schemas:core:2.0:User.

Licensed user

  1. Map the attribute from the Okta to the SCIM App (under Mappings > Okta User to SCIM App).
    • Map the following attribute with the following expression: (user.smartsheetLicensedUser == true) ? 'LICENSED_USER' :''.
    • Save mappings.

Attributes

  1. Test the attribute is coming through by clicking the Preview tool.
    • Set the attribute in the user's profile to True.
    • Using the Preview Tool under Mappings - test that the attribute is mapped.

Attributes

Mappings

  1. Test the attribute gets sent downstream to the SCIM App correctly.

POST SCIM


Okta Limitation

  • Make sure to send both type and value as a response back to Okta. Okta will look for these values, specifically type, as Okta does a look-up on roles based on type in the case of updating/deleting roles.


Related References

 

Loading
How to Add Multi-value Roles in SCIM Cloud Integration