SAP Field Service Management

Follow this procedure to set up SAP Field Service Management as a proxy system.

Prerequisites

You have OAuth credentials for SAP Field Service Management. For more information, see: Generating Client ID & Secret

Context

SAP Field Service Management is a cloud-based solution that is used to resolve customers issues with end-to-end field service management. For example, it helps customers overcome resource limitations, such as having enough skilled technicians in all locations.

You can use the Identity Provisioning user interface (UI) to configure SAP Field Service Management as a proxy system in hybrid scenarios. For example, when SAP Field Service Management is exposed as a proxy system, you can connect it to an external identity management system, such as SAP Identity Management, without making a direct connection between both systems. You can provision users and groups to the external backend system, which can trigger CRUD (create, read, update, delete) operations on users and group members back to the SAP Field Service Management.

This scenario supports provisioning users and group members. When integrated with Identity Provisioning, SAP Field Service Management supports the following group concept:

  • A user is created with а default group assigned. A group is mapped to a company (one of the key organizational units in SAP Field Service Management). When using the Identity Provisioning service API, the group is returned as follows:
    <GroupName>_<CompanyName>
  • A user can have one group assignment for each company. As in SAP Field Service Management a user can be assigned to multiple companies, this requires a group assignment for each of the companies the user can access. A user cannot be assigned to different groups mapped to one and the same company.

Procedure

  1. Open your subaccount in SAP BTP cockpit (valid for OAuth authentication to the Identity Provisioning proxy system).
  2. Create a technical user with the necessary authorizations. It will later be used by the external consumer to connect to Identity Provisioning.
    • For Certificate-based authentication, follow the procedure in Manage Certificates for Inbound Connection → SAP BTP, Neo Environment

    • For OAuth authentication, proceed as follows:

      1. Go to Start of the navigation pathSecurity Next navigation step OAuth Next navigation step ClientsEnd of the navigation path and choose Register New Client.

      2. From the Subscription combo box, select <provider_subaccount>/ipsproxy.

      3. From the Authorization Grant combo box, select Client Credentials.

      4. In the Secret field, enter a password (client secret) and remember it. You will need it later, for the repository configuration in the external system.

      5. Copy/paste and save (in a notepad) the generated Client ID. You will need it later, too.

      6. From the left-side navigation, choose Start of the navigation pathSubscriptions Next navigation step Java Applications Next navigation step ipsproxyEnd of the navigation path .

      7. From the left-side navigation, choose Start of the navigation pathRoles Next navigation step IPS_PROXY_USEREnd of the navigation path.

      8. Choose Assign and enter oauth_client_<client_ID>.

        For <client_ID>, enter the one you have saved in the previous main step.

  3. Access the Identity Provisioning UI.
  4. Add SAP Field Service Management as a proxy system. For more information, see Add New Systems.
  5. Choose the Properties tab to configure the connection settings for your system.

    Mandatory Properties

    Property Name

    Value

    Type

    Enter: HTTP

    URL

    Specify the URL to the API of your SAP Field Service Management system. It follows the pattern:

    https://<cluster>.fsm.cloud.sap

    ProxyType

    Enter: Internet

    Authentication

    Enter: BasicAuthentication

    User

    Enter the OAuth Client Id, created for your SAP Field Service Management system.

    Password

    (Credential) Enter the OAuth Client Secret, created for your SAP Field Service Management system.

    OAuth2TokenServiceURL

    Enter the OAuth 2.0 Token Service URL.

    For example: https://<cluster>.fsm.cloud.sap/api/oauth2/v2/token

    (Optional) fsm.user.filter

    When specified, only those SAP Field Service Management users matching the filter expression will be read.

    Example: name.familyName eq "Smith" and addresses.country eq "US"

    (Optional) fsm.group.filter

    When specified, only those SAP Field Service Management groups matching the filter expression will be read.

    Example: displayName eq "ProjectTeam1" or "Employees2020"

    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.

  6. 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 SAP Field Service Management proxy system, whose settings are displayed under the Transformations tab after saving its initial configuration.

    You can change the default transformation mapping rules to reflect your current setup of entities in your SAP Field Service Management system. For more information, see:

    Manage Transformations.

    SAP Field Service Management - SCIM API

    Default read and write transformations:

    Read Transformation

    Write Transformation

  7. Connect the external consumer to Identity Provisioning with the technical user you have created in step 2.

    If the external consumer system is SAP Identity Management, you can export the newly created proxy system as a SCIM repository from Identity Provisioning and import it in SAP Identity Management. This will create a SCIM repository in SAP Identity Management where most of the repository constants will be automatically filled in. You need to provide the technical user credentials that you have set up in step 2 and the SCIM assignment method as described below:

    • For AUTH_USER and AUTH_PASSWORD, enter your client ID and secret.

    • For the SCIM_ASSIGNMENT_METHOD constant, make sure the value is PUT.

Next Steps

When a proxy system is connected to an external backend system (in the case of SAP Identity Management this means the exported CSV file is imported into the Identity Management Admin UI and a repository is configured), you can start managing the users and groups into this external system. Usually, the first operation is the initial load of the existing entities into your external system. When this load has finished, changes in the external system, such as creating new users or updating existing ones, can trigger CRUD requests back to the proxy system.

To see an example with SAP Identity Management, see Hybrid Scenario: SAP Identity Management → sections Next Steps and Future Identity Lifecycle.