Microsoft Entra ID

Follow this procedure to set up Microsoft Entra ID (formerly known as Microsoft Azure Active Directory) as a source system.

Prerequisites

  • You've logged on to Microsoft Azure Portal, with credentials for a user with directory role Global administrator. For more information, see Microsoft Entra built-in rolesInformation published on non-SAP site.

  • In Start of the navigation pathAzure Active Directory Next navigation step App registrationsEnd of the navigation path, you've registered an application with a secret key and permissions for Microsoft Graph API. These permissions must be consented by an administrator. For more information, see Microsoft Graph permissions referenceInformation published on non-SAP site.

  • (Relevant to target systems) Your registered application is assigned the User Account Administrator role. This role allows you to deprovision users. For more information, see Add-MsolRoleMemberInformation published on non-SAP site.

Permissions

Assign the following permissions to your application, according to your scenario. Also, the permissions have to be of type Application.

  • Users – User.Read.All

  • Groups – Group.Read.All

For more information, see MS Graph: UsersInformation published on non-SAP site and MS Graph: GroupsInformation published on non-SAP site

Context

When using it as a source system, you can read both users and groups from Azure AD and provision them to any target system you've added in the Identity Provisioning user interface (if it supports groups).

If you've successfully finished with the initial setup (described in the Prerequisites section), continue with the procedure.

Procedure

  1. Access the Identity Provisioning UI.
  2. Add Microsoft Entra ID as a source system. For more information, see Add New Systems.
  3. Choose the Properties tab to configure the connection settings for your system.

    Mandatory Properties

    Property Name

    Description & Value

    Type

    Enter: HTTP

    URL

    Enter: https://graph.microsoft.com

    ProxyType

    Enter: Internet

    Authentication

    Enter: BasicAuthentication

    User

    Enter the application ID registered in your Azure AD subscription (see the Prerequisites section).

    Password

    (Credential) Enter the secret key associated to your app registration.

    aad.domain.name

    Enter one of the verified domain names from the corresponding Azure AD tenant. On this domain, you perform the provisioning operations. For more information, see Managing custom domain names in your Microsoft Entra IDInformation published on non-SAP site.

    OAuth2TokenServiceURL

    Enter: https://login.microsoftonline.com/<your_domain>/oauth2/token, where <your_domain> is the domain name you have set in the aad.domain.name property.

    (Optional) aad.oauth2.resource.name

    Specifies the OAuth2 resource name for Microsoft Graph API.

    Enter: https://graph.microsoft.com

    You can change the Microsoft Graph endpoint to match your organization's cloud environment. For more information, see Microsoft Graph national cloud deployments.

    (Optional) aad.group.member.attributes

    This property defines the attributes of a group member to be read by the Identity Provisioning. By default, it always reads the type and the id of a member.

    If you want the Identity Provisioning to read additional attributes, enter them as a single or a comma-separated value. For example:

    (Optional) aad.user.attributes.membership.active

    Use this property if you want to retrieve information about all the groups to which the users are assigned (if any).

    • If the property is missing, or is set to false – group membership details for the users will not be extracted.

    • If the property is set to true – group membership details for the users will be extracted.

    To learn more, see: List of Properties

    (Optional) aad.user.filter

    Use this property to filter users by specific criteria, according to the Microsoft Graph REST APIInformation published on non-SAP site.

    (Optional) aad.group.filter

    Use this property to filter groups by specific criteria, according to the Microsoft Graph REST APIInformation published on non-SAP site.

    (Optional) aad.user.filter.group.filter.combine

    Use this property to filter users based on their group assignments.

    When set to true, this property combines user and group filters defined on the aad.user.filter and aad.group.filter properties to further narrow the search results. This way, only users that meet the following filtering criteria are returned:

    • Users that match the user filter and at the same time are members of groups that match the group filter.

    • Members of the filtered groups that match the user filter.

    When set to false, user and group filters are not combined.

    To learn more, see:

    List of Properties

    Identity Provisioning: How to Get Users Based on Group Assignments from MS Azure ADInformation published on SAP site

    (Optional) aad.user.attributes

    Defines which user attributes are read from Microsoft Entra ID system.

    The property is set during system creation with the following default value: id,mail,userPrincipalName,displayName,mailNickname,givenName,surname,mobilePhone,businessPhones

    This means that by default, Identity Provisioning will read from Microsoft Entra ID the user attributes defined in the property value. Those attributes are used in the default read transformation.

    To check the complete set of user attributes (properties) supported by Microsoft Entra ID, see: Microsoft Graph: User PropertiesInformation published on non-SAP site

    To learn more, see: List of Properties

    (Optional) aad.group.attributes

    Defines which group attributes are read from Microsoft Entra ID system.

    The property is set during system creation with the following default value: id,displayName,mailNickname

    This means that by default, Identity Provisioning will read from Microsoft Entra ID the group attributes defined in the property value and will also return the members attribute. Those attributes are used in the default read transformation.

    To check the complete set of group attributes (properties) supported by Microsoft Entra ID, see: Microsoft Graph: Group PropertiesInformation published on non-SAP site

    To learn more, see: List of Properties

    (Optional) aad.entities.top

    This property defines the number of entities to be read per page. Default value: 100

    (Deprecated) oauth.resource.name

    Enter: https://graph.microsoft.com

    To learn what additional properties are relevant to this system, see List of Properties. You can use the main search, or filter properties by the Name or System Type columns.

  4. (Optional) Configure the transformations.

    Transformations are used to map the user attributes from the data model of the source system to the data model of the target system, and the other way around. The Identity Provisioning offers a default transformation for the Microsoft Entra ID source system, whose settings are displayed under the Transformations tab after saving its initial configuration.

    You can change the default transformation mapping rules depending on your setup of entities in your Microsoft Entra ID. For more information, see:

    Manage Transformations

    MS Graph: UsersInformation published on non-SAP site

    MS Graph: GroupsInformation published on non-SAP site

    Default transformation:

    Custom Configurations

    Goal

    Action

    Result

    You want Identity Provisioning to read the additional user attributes specified in property aad.user.attributes and write them successfully in the target system.

    Extend the "user" mapping as follows:

    {
    	"user": {
    	   "condition": "$.userPrincipalName EMPTY false",
    	   "mappings": [
    		{
    		   "sourcePath": "$",
    		   "targetPath": "$"
    		},
    		{
    		   "sourcePath": "$.id",
    		   "targetVariable": "entityIdSourceSystem"
    		},
    ...
     

    For example, you specify the aad.user.attributes property and set its value to: id,mail,userPrincipalName,city,department,companyName

    As a result, every user in the target system will have the following attributes populated – ID, e-mail, user principle name, city, department, and company name.

    Returned information of an exemplary user:

    ...
    {
       "Resources":[
    	{
    	   "id":"555-aaaa-333-abcd-111222333",
    	   "mail":"john.smith@domain.com",
    	   "userPrincipalName":"abc@something.onmicrosoft.com",
    	   "city": "Sofia",
    	   "department":"029",
    	   "companyName":"SAP"
    	}
    ...
       ]
    }
    

    You want Identity Provisioning to read the additional group attributes specified in property aad.group.attributes and write them successfully in the target system.

    Extend the "group" mapping as follows:

    {
    	"group": {
    	   "ignore": false,
    	   "mappings": [
    		{
    		   "sourcePath": "$",
    		   "targetPath": "$"
    		},
    		{
    		   "constant": "urn:ietf:params:scim:schemas:core:2.0:Group",
    		   "targetPath": "$.schemas[0]"
    		},
    ...
     

    Example: Specify the aad.group.attributes property and set its value to: id,displayName,recommendation,isSubscribedByMail

    As a result, every group in the target system will have the following attributes populated – ID, display name, date and time of the last renewal, and information if it's subscribed by e-mail or not.

    Returned information of an exemplary group:

    ...
    {
       "Resources":[
    	{
    	   "id":"12345-ccc-000-xyz-777888999",
    	   "displayName":"ImportantGroup3",
    	   "renewedDateTime":"2018-01-01T00:00:00Z",
    	   "isSubscribedByMail":"true"
    	}
    ...
       ]
    }
    

    You want the returned value of a group member to be not the ID but a different attribute.

    In the "group" mapping, replace id with the new attribute. For example:

    If you replace id with mail, the transformation will look like this:

    ...
    	{
    	   "sourcePath": "$.members",
    	   "preserveArrayWithSingleElement": true,
    	   "optional": true,
    	   "targetPath": "$.members"
    	},
    	{
    	   "targetPath": "$.members[*].mail",
    	   "constant": "value",
    	   "type": "rename",
    	   "optional": true
    	}
    ...

    Returned information of an exemplary group member:

    ...
    {
       "members":[
    	{
    	   "id":"5555555-aaaa-333-abcd-1111122223333",
    	   "type":"user",
    	   "value":"johnsmith@mail.acme.com"
    	}
      ]
    }
    ...
  5. Now, add a target system to provision users and groups into it. Choose from: Target Systems

Next Steps

  • Before starting a provisioning job, you can first subscribe for e-mail notifications from the source system you use in your scenario. This way, you will be notified by e-mail about eventual failed entities during the jobs. For more information, see Manage Job Notifications.

  • Start an identity provisioning job. For more information, see Monitor Provisioning Job Logs.