This document provides information about how to set up the integration and identity provisioning from Azure Active Directory (Azure AD) to Segura® Platform using the SCIM protocol.
To perform Azure AD identity provisioning in the Segura® Platform, it needs to be open to the Internet. If you do not wish to open it to the Internet, you can allow only the Azure AD IPs that perform the communication. More information about the IP range in Azure IP Ranges and Service Tags – Public Cloud and IP Ranges.
Segura® Platform now assigns app roles that a user inherits from an Azure group. After SCIM creates the user, Segura® Platform asks Azure to resend that user's roles. A check also runs every 30 minutes and assigns roles to users left without one, including users provisioned before you configured the credential below. This check never changes a role you assigned manually.
This applies only to providers that use the SCIM protocol with Azure AD, and only after you register the Microsoft Graph credential described in Requirements. Without that credential, synchronization keeps working as before, and Segura® Platform does not assign inherited roles.
Requirements
- Administrative access to Segura® Platform to create an access provider.
- Established network connection between Azure and Segura® Platform for token request and user provisioning on the SCIM API.
- A configured enterprise application in Azure.
- Groups created in Azure must have exactly the same name as the existing user groups in Segura® Platform. Avoid spaces in group names.
- In Azure, assign each app role to the group whose members must receive it. Users inherit the role through group membership, which is what Azure sends to Segura® Platform in the
entitlementsattribute. - The Display name of each Azure app role must match the name of the corresponding role in Segura® Platform exactly, including capitalization. For this comparison,
PAM userandPAM Userare different roles. Segura® Platform matches the app role by its Display name, never by its Value. - A credential registered in Segura® Platform for the Azure app registration, to be selected on the provider. Register it with Username as the Application (client) ID, Additional information as the Directory (tenant) ID, and Password as the client secret. See How to set up a credential.
- The Azure app registration must have the application permissions
Application.Read.All,Synchronization.ReadWrite.All, andUser.ReadBasic.All, with admin consent granted. Grant them with type Application; permissions of type Delegated are not sufficient. Do not grant broader read permissions such asUser.Read.All,Directory.Read.All, orGroup.Read.All. They are not needed, and granting them breaks the least-privilege requirement. - Segura® Platform must have a DNS with a valid certificate published.
- The system URL in Segura® Platform must be correctly configured.
Azure rejects spaces in an app role Value. Roles whose names contain spaces, such as PAM User and System Auditor, can therefore only be matched by their Display name.
Create a provider in the Segura® Platform
- On Segura® Platform, in the navigation bar, hover over the Products Menu and select Settings.
- In the side menu, select Provisioning > Identity Management (IGA) > Providers.
- Click + Add.
- In the Name * field, enter a name for the provider.
- In the Protocol * field, select the SCIM protocol.
- In the Add users to Domum? *, select the type of Domum connection.
- In the Enabled * field, select to enable or disable the provider.
- Optional: In the Description field, enter a description for the provider.
- Optional: In the Tags field, enter tags to identify the provider.
- In the Authentication method * field, select OAuth 2.0 as the provider’s authentication method.
- In the Date/Time Expiration field, enter the expiration date and time of the authentication.
- In the Allowed IPs (Put * to allow any IP) table, click + Add to enter the allowed IPs.
- In the Allowed HTTP referrers (empty list for any source) table, click + Add to enter the allowed HTTP referrers.
- Optional: In the Azure app registration credential (Microsoft Graph) field, select the credential you registered for the Azure app registration. Segura® Platform assigns roles inherited from groups only when this field is filled in.
- Click Save.
After creating the provider, save the Client ID and Client Secret values. Segura® Platform generates these two values, and they differ from the Application (client) ID and the client secret of the app registration used in the Microsoft Graph credential. You enter them directly in Azure during the enterprise application setup.
Segura® Platform uses the Azure app registration credential (Microsoft Graph) for outbound access: it authenticates with Microsoft Graph to request a user's roles from Azure. This is separate from the inbound authentication Azure uses to reach the SCIM API, which you configure through the Authentication method field.
Create an enterprise application in Azure
- Access Azure’s platform.
- Login to your Azure account.
- Locate the Microsoft Entra ID service.
- In the side menu, click Manage > Enterprise applications.
- Click New application.
- Click Create your own application.
- Enter a name for your application, and select Integrate any other application you don’t find in the gallery (Non-gallery).
- In your enterprise application, click Manage > Provisioning.
- In the overview of your application, click Manage > Provisioning.
- In the Provisioning Mode field, select Automatic.
- In the Connectivity tab, fill the following fields:
- In the Select authentication method field, select OAuth2 client credentials grant.
- In the Tenant URL * field, enter the Base URL value obtained from viewing the details of the provider in the Segura® Platform. Example:
https://<your-segura>/iso/scim/v2. - In the Token endpoint * field, enter the Segura® token endpoint. Example:
https://<your-segura>/iso/oauth2/token. - In the Client identifier * field, enter the Client ID obtained in the Create a provider in Segura® section.
- In the Client secret * field, enter the Client Secret obtained in the Create a provider in Segura® section.
- Click Test connection to validate the connection with Segura® Platform. Azure sends a request to Segura® Platform to validate the credentials and the token endpoint.
- Continue the setup in the Configure user mappings section.
With OAuth2 client credentials grant, Azure requests and refreshes the access token automatically using the Client ID and Client Secret generated by Segura® Platform. No external tool is required to obtain the token.
Configure user mappings
- After creating the enterprise application, click Provision Microsoft Entra ID Users.
- In the Attribute Mappings section, delete the
entitlements.valueparameter. - Tick the Show advanced options checkbox and click Edit attribute list for customappsso.
- In the new window, create the following attributes.
- In the
userNameattribute, tick the checkbox in the Required? column. - In the
emailattribute, do not tick any checkbox. - In the
displayNameattribute, do not tick any checkbox. - In the
name.givenNameattribute, do not tick any checkbox. - In the
name.formattedattribute, do not tick any checkbox. - In the
activeattribute, do not tick any checkbox. - A new attribute called
entitlements, String type, and tick the Multiple values? checkbox.
- In the
- Click Save.
- Back to the Attribute Mappings section, click Add new mapping, and add the following attributes as mappings:
userNameattribute:- In the Mapping type field, select Direct.
- In the Source attribute * field, select
userPrincipalName. - In the Target attribute * field, select
userName.
emailattribute:- In the Mapping type field, select Direct.
- In the Source attribute * field, select
mail. - In the Target attribute * field, select
email.
displayNameattribute:- In the Mapping type field, select Direct.
- In the Source attribute * field, select
displayName. - In the Target attribute * field, select
displayName.
name.givenNameattribute:- In the Mapping type field, select Direct.
- In the Source attribute * field, select
givenName. - In the Target attribute * field, select
name.givenName.
name.formattedattribute:- In the Mapping type field, select Expression.
- In the Source attribute * field, select
Join(“ “, [givenName], [surname]). - In the Target attribute * field, select
nameFormatted.
activeattribute:- In the Mapping type field, select Expression.
- In the Source attribute * field, select
Switch ([isSoftDeleted], , “False”, “True”, “True”, “False”). - In the Target attribute * field, select
nameFormatted.
entitlementsattribute:- In the Mapping type field, select Expression.
- In the Source attribute * field, select
AssertiveAppRoleAssignmentsComplex([appRoleAssignments]). - In the Target attribute * field, select
entitlements.
- Click Save and go back to the provisioning menu informed in step 9. of the Create an enterprise application in Azure section.
Segura® Platform reads roles from the entitlements attribute only. If you map the expression to roles instead, Segura® Platform assigns no role and shows no warning.
Enable provisioning
In the initial provisioning configuration screen, enable the Provisioning status field.
From this point on, provisioning will run, synchronizing users from Azure AD with Segura® Platform.
Large-scale user synchronization can lead to slow processing and increased machine resource usage. We recommend conducting provisioning in smaller, more manageable batches to minimize performance impact.
If roles are not assigned
When a user is created but receives no role, check the following, in this order:
- Confirm that the app role Display name in Azure and the role name in Segura® Platform are identical, including capitalization.
- Confirm that the
entitlementsattribute is mapped with theAssertiveAppRoleAssignmentsComplex([appRoleAssignments])expression, as described in the Configure user mappings section. - Confirm that the Azure app registration credential (Microsoft Graph) field on the provider has a credential selected.
- Confirm that the app registration permissions are granted with type Application and have admin consent.
After correcting any of these, wait for the next check or, to apply the role immediately to a specific user, provision that user on demand from Azure.
To be notified when the automatic role resend fails, add a notification that includes the types Azure credential rejected during role reinforcement and Role reinforcement exhausted attempts. In these notification types, "role reinforcement" refers to the automatic role resend described in this article. See How to manage notifications.
Without a notification configured for these types, the alert is not stored, and no record of the failure is available in the interface.