Set Up SCIM Provisioning with Microsoft Azure AD

You can configure Contentstack as a provisioning app in Microsoft Azure Active Directory. This allows you to use Microsoft Azure AD to provision or deprovision users automatically with Contentstack.

Note: Before proceeding with this guide, ensure that SCIM is a part of your Contentstack plan.

Here’s a step-by-step guide that explains how you can do this.

  1. Enable SCIM in Contentstack
  2. Install Azure Generic SCIM App from Contentstack Marketplace
  3. Add Contentstack to Microsoft Azure AD
  4. Configure Provisioning in Microsoft Azure AD
  5. Add Users and Groups to your Application
  6. Create Group Mapping in Contentstack

Prerequisite

  1. Enable SCIM in Contentstack

    Note: Only the Owner or Admin users of an organization in Contentstack can perform this step.

    To allow provisioning of users in Contentstack’s organization through Microsoft Azure AD, you need to enable SCIM in Contentstack by performing the following steps:

    1. Log in to your Contentstack account and go to the Organization Settings page.
    2. Go to the SCIM tab and select the Enable SCIM option.
      org_enable_scim.png

    3. On the resulting Enable SCIM modal, click Enable.
      enable_SCIM.png

    After enabling SCIM, you’ll see the Group Mapping section. This section will enable you to set permissions for a group of users provisioned via Microsoft Azure AD app.

  2. Install Azure Generic SCIM App from Contentstack Marketplace

    1. On the left navigation panel, you will find the icon for Marketplace. Click the icon to navigate to Marketplace and then click Apps.
      click_install_app.png
    2. Select Azure Generic SCIM and click Install App.
      Azure_SCIM_install_app.png
    3. In the resulting authorization window, click the Authorize & Install button.
      authorize_and_install_app.png
    4. A tenant URL and a secret token are generated on the successful installation of the app. Copy the tenant URL and the secret token for future reference.
      tenant_url_and_token.png
  3. Add Contentstack to Microsoft Azure AD

    Note: In order to add Contentstack to the Azure AD application gallery, you must be a Microsoft Azure AD administrator. If you've already created an app for Contentstack to use SSO, you can skip this step.

    1. Log in to the Microsoft Azure portal and click Azure Active Directory.
      Click-AAD.png
    2. Click Enterprise applications from the left navigation panel.
      Click_enterprise_applications.png
    3. Click + New application.
      Click_new_application.png
    4. Within the Azure AD Gallery, click Create your own application.
      Create_your_own_app.png
    5. In the resulting Create your own application panel, enter the application name, select the Non-Gallery option, and click Create to create the Contentstack app.
      Create_CS_app.png
    6. Now, your Contentstack app is added to the Microsoft Azure Active Directory.
      CS_in_AAD.png
  4. Configure Provisioning in Microsoft Azure AD

    1. Within your Contentstack app in Microsoft Azure AD, click Provisioning from the left navigation panel.
      Click_provisioning.png
    2. Click Get started. It opens up in the Provisioning window. Change the Provisioning Mode to Automatic and provide the Admin credentials, such as Tenant URL and Secret Token of the installed Azure Generic SCIM app.
      • Tenant URL: Contentstack’s SCIM URL is used as Tenant URL. Enter the tenant URL generated in step 2.4 while installing the Azure Generic SCIM app.
      • For the Secret Token field, add the token generated in step 2.4 while installing the Azure Generic SCIM app.
        Admin_credentials.png
    3. Click Test Connection to ensure connection between the Azure AD and the Contentstack app. Click Save to save the app provisioning configurations.
    4. Under the Mappings section, select Provision Azure Active Directory Users.
      AAD_users_mapping.png
    5. In the Attribute-Mapping section, map user attributes, such as userName, givenName, surname, and IsSoftDeleted.
      User_attributes_mapping.png
    6. Click Save to save the changes.
    7. Navigate back to the Mappings section and select Provision Azure Active Directory Groups.
      AAD_groups_mapping.png
    8. In the Attribute-Mapping section, map group attributes such as displayName and members.
      group_mapping.png
    9. Click Save to save the changes.
    10. Under the Settings section, for the Notification Email field, enter the email address of the person or group who should receive the provisioning error notifications. Check the “Send an email notification when a failure occurs” check box.
      email_notification.png
    11. For Scope, select a suitable option.
      scope_setting.png
    12. Set the Provisioning Status to On for enabling Azure AD provisioning.
      provision_status_on.png
    13. Click Save to save the provisioning.
  5. Add Users and Groups to your Application

    After configuring the provisioning settings, you need to add users to your newly added application.

    Note: Skip this step if you have selected "Sync All Users and Groups" in step 4.11.

    To add Users and Groups to your Application, perform the following steps:

    1. Navigate to Azure Active Directory, select Enterprise applications, select All applications, and then select your application.
      select_appln.png
    2. Within the Getting Started section, click the Assign users and groups tab.
      assign_users_and_groups.png
    3. Click the + Add user/group button.
      add_user_and_group.png
    4. In the resulting window, click None selected under Users and groups.
      click_none_users_and_groups.png
    5. A list of users appears in the resulting Users and groups modal. From the given list, click Select to select the users and groups and click Assign to assign them the app roles.
      assign_user_to_app_role.png
  6. Create Group Mapping in Contentstack

    Group mapping refers to the process of assigning permissions to the SCIM groups at the organization level and the stack level in Contentstack. The permissions you set for a particular group will be applicable to all the users added to that group.

    To perform group mapping, perform the following steps:

    1. Go to the Organization Settings page in Contentstack and then to the SCIM tab.
    2. org_settings_open_SCIM.png
    3. From the SCIM Group dropdown, select the group for which you want to set permissions.
    4. select_group.png
    5. Select the Organization Role for the group.
    6. org_role.png
    7. Set Stack Role for the group. For example, if you set the “Developer” role for the “Developer stack” stack, users within the selected group will have a “Developer” role on that stack.
    8. stack_role.png
    9. Finally, click Update to update the changes in the group mappings.

This process sets up the SCIM Provisioning for your Contenstack account with the Microsoft Azure Active Directory.

Was this article helpful?

Thanks for your feedbackSmile-icon

More articles in "SCIM Guides"

On This Page

^