Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
katalin_joo
Discoverer

In this blog you will find detailed steps on how to configure and test the IAG Access Request APIs, which enable external applications to submit request to SAP Cloud Identity Access Governance (IAG) and search for specific entities that are required to create request. For more information, see Access Request API.


Configuring the Access Request APIs


>> In the Global Account <<


Prerequisites:




  1. You have administrative access to the Global Account.



  1. You have IAG license provisioned in this Global Account.


Procedure:




  1. Log in to the SAP BTP Cockpit and open your Global Account where the IAG Subaccounts have been created.

  2. Go to Entitlements > Entity Assignments and select your IAG Subaccount.

  3. Choose Configure Entitlements and Add Service Plan.

  4. Search for the entitlement SAP Cloud Identity Access Governance. If you do not find, then contact your admin or SAP AE (Account Executive) for license details.

  5. Activate the checkbox for standard - Standard API access Plan. Even if you are entitled to more than one, you may only add one to each Subaccount.

  6. Click Add 1 Service Plan and Save.



>> In the Subaccount <<


Prerequisites:




  1. The Cloud Foundry environment is enabled. For more information, see:
    3136962 - Cloud Foundry tab is not visible in BTP Cockpit
    3082980 - "Cloud Foundry" tile is not shown in BTP Subaccount

  2. You have the Org Manager role. For more information, see Add Org Members Using the Cockpit.

  3. A Space is created. For more information, see Create Spaces.


Procedure:




  1. Open your IAG Subaccount in SAP BTP Cockpit.

  2. Go to Instances and Subscriptions and click Create.

  3. Select the Service SAP Cloud Identity Access Governance - grc-iag-api from the dropdown list.

  4. For the Plan, select standard.

  5. For Runtime Environment, select Cloud Foundry.

  6. For the Space, select the relevant Space.

  7. Fill the Instance Name and and click Create.




  1. Click the Instance you created.

  2. Go to Service Keys and click Create.

  3. Fill the Service Key Name and click Create.


Testing the Access Request APIs


Go to 'Instances and Subscriptions' in your IAG Subaccount in the SAP BTP Cockpit > click the 'Instance' to see the 'Service Key' which has been created for this purpose and copy the below data:




  • ARQAPI (e.g. https://..arqapi.cfapps.eu10.hana.ondemand.com)

  • url (it is used later in testing phase for fetching the token, e.g. https://{iag subdomain}.authentication.eu10.hana.ondemand.com)

  • clientid

  • clientsecret


1. Testing Access Request APIs at 'SAP API Business HUB'




  1. Go to SAP Cloud Identity Access Governance, Access Request Service.

  2. Select the API you would like to test e.g. Create IAG Request and click Try Out.

  3. Add New Environment and configure it as below using the data copied from the Service Key.





  1. Go to Body and fill the Payload:


    • priorityId: check the 'Access Request Priority' tile in IAG

    • reasonCode: check the 'Request Reason' tile in IAG

    • requesttypeid: CHANGE or CREATE

    • accessType: e.g. BR, CR, GP, SFSG, TR ...

    • applicationType: e.g. SAPERP, S4HANA, S4HANACLOUD ... > check the 'Connector Types' tile in IAG

    • action: A or D

    • connector: check the System tile in IAG

    • domain: check the subdomain under the Overview section in your IAG Subaccount in SAP BTP Cockpit





  1. Click Run and check the Response.



2. Testing Access Request APIs in Postman


Postman is an API platform, which you can download from here.




  1. Go to Authorization tab and select Type OAuth 2.0.

  2. Fill the required fields using the data (ARQAPI, url, clientid, clientsecret) copied from the Service Key.

  3. Click Get New Access Token to generate the token and click Send.




How the API URL is built:

GET: {ARQAPI} + /com/sap/grc/iag/service/eaccessrequest.svc + /{API Name} + ?{Parameters}


To check the API Name and Parameters, go to SAP Cloud Identity Access Governance, Access Request Service, select the API you would like to test e.g. Request Status and go to 'API References'.






Note: Please share your feedback or thoughts in a comment below or ask questions in the Q&A tag area here about SAP Cloud Identity Access Governance.