cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Failed to load User Attributes in SAP Fiori App.

mayur_0129
Explorer
379

Hello SAP Experts !

We are facing an issue while fetching the login_name and groups property while reading user attributes in the Fiori app; the rest of the properties are coming as usual, like firstname, lastname, name, and email. We are expecting the login_name and groups property as well, because our main logic and manipulation of data is based on login_name and groups.

Thank you in advance.

mayur_01_0-1732275548821.png

 

Accepted Solutions (0)

Answers (1)

Answers (1)

MioYasutake
SAP Champion
SAP Champion
0 Kudos

@mayur_0129 

The following explanations from the User API document of the approuter may be relevant.

  • User attributes from the identity provider (IdP) chosen for the authentication will be added to the response of the “/attributes” endpoint. If a custom IdP is configured for Identity Authentication Service (IAS), the custom user attributes are also added to the response of the “/attributes” endpoint. For more information about the definition of custom properties in IAS, see Configure the Default Attributes Sent to the Application on the SAP Help Portal.
  • In order to get the user attributes from the custom IdP, the following property should be added to application router xs-security.json file - "foreign-scope-references": ["user_attributes"]