on 2025 Mar 21 5:20 PM
Hello,
We have a requirement to create Users in SAP BTP whenever the supplier registers with email id. For this SAP has provided Identity Directory API Overview | Identity Directory API | SAP Business Accelerator Hub
In above link I want to use Users.
Below is the destination set up
We are trying to call API from ABAP on Cloud and CAPM but it is failing in both cases below are the details.
From ABAP on Cloud:
When trying option 1 and 2 we are getting below error.
"401","detail":"Authentication credentials are invalid or not allowed for this endpoint."
CAPM:
After deploying to cloud foundry we get below error.
We get below error.
Surprisingly when we try from Postman hub it is working fine.
Can anyone help?
Request clarification before answering.
Hi,
I can only comment for ABAP Cloud (not CAP), but as you are consuming a OAuth 2.0 Client Credentials Destination, you have to use i_authn_mode = service_specific in your create_by_cloud_destination call (SAP Help).
As I assume that you use destinations on subaccount level, you should also omit the service_instance_name.
In general, if there is no particular reason for you to use a BTP destination in your ABAP code, I would recommend to use local configuration based on the communication target and communication management (SAP Help).
Best Regards
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.