SAP HANA Cloud Database Services

Follow this procedure to set up SAP HANA Cloud Database Services as a proxy system.

Prerequisites

You have created a technical user for Identity Provisioning in the SAP HANA database with the OPERATOR and ROLE ADMIN system privileges. For more information, see SAP Identity Provisioning Service → Prerequisites.

Context

SAP HANA Cloud allows you to consume the SAP HANA database from cloud applications running on SAP Business Technology Platform, as well as from applications running elsewhere using the standard SAP HANA clients. Every instance of SAP HANA Cloud has its own single SAP HANA Database.

You can use the Identity Provisioning user interface (UI) to configure SAP HANA Cloud Database Services as a proxy system in hybrid scenarios. For example, when SAP HANA Cloud Database Services 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 roles to the external backend system, which can trigger CRUD (create, read, update, delete) operations on users and user role assignments back to the SAP HANA Cloud Database Services.

The SAP HANA Cloud Database Services connector supports provisioning of entities to the following two database types:

  • SAP HANA Database (HDB)

  • SAP HANA Data Lake Relational Engine (HDLRE / IQ Database)

You can define the target database type by setting the hana.cloud.db.instance.type property to either hdb or hdlre.

For more information on the supported database types, see SAP HANA Cloud, SAP HANA Database and SAP HANA Cloud, Data Lake.

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 HANA Cloud Database Services 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

    Description & Value

    Authentication

    Enter: BasicAuthentication

    hana.cloud.db.instance.type

    Refers to the database type configured or used within SAP HANA Cloud.

    The value can be set to:
    • hdb - SAP HANA Database

    • hdlre - SAP HANA Data Lake Relational Engine

    Default value: hdb

    hana.cloud.db.instance.id

    Refers to a unique identifier associated with a specific database instance within the SAP HANA Cloud.

    hana.cloud.db.providerName

    Specifies the identity provider (IdP) that users managed through Identity Provisioning will use for authentication.

    The provider must be configured to support the authentication method specified in hana.cloud.db.authenticationType.

    For more information on how to obtain the value, refer to the create a JWT provider step in the User Provisioning with Identity Provisioning Service.

    hana.cloud.db.authenticationType

    Specifies the method by which users managed through Identity Provisioning authenticate when connecting to the database.

    The authentication method is set to JWT (users authenticate via JWT tokens issued by an identity provider) during system creation.

    hana.cloud.db.user.filter

    (Optional) When specified, only those SAP HANA Cloud Database Services users matching the filter expression will be read.

    Example: name.familyName eq "Smith"

    hana.cloud.db.group.filter

    (Optional) When specified, only those SAP HANA Cloud Database Services roles matching the filter expression will be read.

    Example: displayName eq "ProjectTeam1" or "Employees2020"

    OAuth2TokenServiceURL

    Enter the OAuth 2.0 Token Service URL.

    For example: https://demo-hc-3-test.authentication.sap.hana.ondemand.com/oauth/token

    For more information on how to obtain the value, refer to the create a service binding step in the User Provisioning with Identity Provisioning Service.

    Password

    (Credential) Enter the OAuth Client Secret, created for your SAP HANA Database system.

    For more information on how to obtain the value for the technical user, refer to the procedure in the User Provisioning with Identity Provisioning Service.

    ProxyType

    Enter: Internet

    Type

    Enter: HTTP

    URL

    Enter the SAP HANA Cloud Database Services API URL.

    For example: https://api.gateway.orchestration.<cluster>-<datacenter>.hanacloud.ondemand.com

    User

    Enter the OAuth Client Id, created for your SAP HANA Database system.

    For more information on how to obtain the value for the technical user, refer to the procedure in the User Provisioning with Identity Provisioning Service.

    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 HANA Cloud Database Services 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 HANA Cloud Database Services system. For more information, see:

    Manage Transformations.

    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.