Azure AD on-premises application provisioning to SCIM-enabled apps

The Azure Active Directory (Azure AD) provisioning service supports a SCIM 2.0 client that can be used to automatically provision users into cloud or on-premises applications. This article outlines how you can use the Azure AD provisioning service to provision users into an on-premises application that's SCIM enabled. If you want to provision users into non-SCIM on-premises applications that use SQL as a data store, see the Azure AD ECMA Connector Host Generic SQL Connector tutorial. If you want to provision users into cloud apps such as DropBox and Atlassian, review the app-specific tutorials.

Diagram that shows SCIM architecture.

Prerequisites

  • An Azure AD tenant with Azure AD Premium P1 or Premium P2 (or EMS E3 or E5). Using this feature requires Azure AD Premium P1 licenses. To find the right license for your requirements, see Compare generally available features of Azure AD.
  • Administrator role for installing the agent. This task is a one-time effort and should be an Azure account that's either a hybrid administrator or a global administrator.
  • Administrator role for configuring the application in the cloud (application administrator, cloud application administrator, global administrator, or a custom role with permissions).
  • A computer with at least 3 GB of RAM, to host a provisioning agent. The computer should have Windows Server 2016 or a later version of Windows Server, with connectivity to the target application, and with outbound connectivity to login.microsoftonline.com, other Microsoft Online Services and Azure domains. An example is a Windows Server 2016 virtual machine hosted in Azure IaaS or behind a proxy.

Download, install, and configure the Azure AD Connect Provisioning Agent Package

If you have already downloaded the provisioning agent and configured it for another on-premises application, then continue reading in the next section.

  1. In the Azure portal, select Azure Active Directory.
  2. On the left, select Azure AD Connect.
  3. On the left, select Cloud sync.

Screenshot of new UX screen.

  1. On the left, select Agent.

  2. Select Download on-premises agent, and select Accept terms & download.

    Note

    Please use different provisioning agents for on-premises application provisioning and Azure AD Connect Cloud Sync / HR-driven provisioning. All three scenarios should not be managed on the same agent.

  3. Open the provisioning agent installer, agree to the terms of service, and select next.

  4. When the provisioning agent wizard opens, continue to the Select Extension tab and select On-premises application provisioning when prompted for the extension you want to enable.

  5. The provisioning agent will use the operating system's web browser to display a popup window for you to authenticate to Azure AD, and potentially also your organization's identity provider. If you are using Internet Explorer as the browser on Windows Server, then you may need to add Microsoft web sites to your browser's trusted site list to allow JavaScript to run correctly.

  6. Provide credentials for an Azure AD administrator when you're prompted to authorize. The user is required to have the Hybrid Identity Administrator or Global Administrator role.

  7. Select Confirm to confirm the setting. Once installation is successful, you can select Exit, and also close the Provisioning Agent Package installer.

Provisioning to SCIM-enabled application

Once the agent is installed, no further configuration is necessary on-premises, and all provisioning configurations are then managed from the portal. Repeat the below steps for every on-premises application being provisioned via SCIM.

  1. In the Azure portal navigate to the Enterprise applications and add the On-premises SCIM app from the gallery.
  2. From the left hand menu navigate to the Provisioning option and select Get started.
  3. Select Automatic from the dropdown list and expand the On-Premises Connectivity option.
  4. Select the agent that you installed from the dropdown list and select Assign Agent(s).
  5. Now either wait 10 minutes or restart the Microsoft Azure AD Connect Provisioning Agent before proceeding to the next step & testing the connection.
  6. In the Tenant URL field, provide the SCIM endpoint URL for your application. The URL is typically unique to each target application and must be resolvable by DNS. An example for a scenario where the agent is installed on the same host as the application is https://localhost:8585/scim Screenshot that shows assigning an agent.
  7. Select Test Connection, and save the credentials. The application SCIM endpoint must be actively listening for inbound provisioning requests, otherwise the test will fail. Use the steps here if you run into connectivity issues.

Note

If the test connection fails, you will see the request made. Please note that while the URL in the test connection error message is truncated, the actual request sent to the application contains the entire URL provided above.

  1. Configure any attribute mappings or scoping rules required for your application.
  2. Add users to scope by assigning users and groups to the application.
  3. Test provisioning a few users on demand.
  4. Add more users into scope by assigning them to your application.
  5. Go to the Provisioning pane, and select Start provisioning.
  6. Monitor using the provisioning logs.

The following video provides an overview of on-premises provisioning.

Additional requirements

  • Ensure your SCIM implementation meets the Azure AD SCIM requirements.

    Azure AD offers open-source reference code that developers can use to bootstrap their SCIM implementation. The code is as is.

  • Support the /schemas endpoint to reduce configuration required in the Azure portal.

Next steps