2024 Dec 09 10:34 AM - edited 2024 Dec 09 10:35 AM
Hi Community!
I'm currently working on an SAP project deployed in Cloud Foundry, and I'm trying to fetch the logged-in user's details using the User API. My setup includes an xs-app.json with a route to /userapi/currentUser.
Here's what I'm trying to achieve:
Retrieve the user's full name and user ID.
Request clarification before answering.
Normally those fields are available in that api: https://help.sap.com/docs/cloud-portal-service/sap-cloud-portal-service-on-cloud-foundry/user-api-se...
userid depends on how the authentication is configured. Name contains the subject name identifier and in most cases this is the userid but not always. You have some other options like reading the jwt token using cap or reading cis: https://community.sap.com/t5/technology-blogs-by-members/show-current-user-details-in-cloud-foundry-...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 7 | |
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 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.