cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Attributes from SAP IAS tenant not visible in SAP CF

vinaykasa
Discoverer
0 Kudos

Hi everyone,

I am trying to fetch the custom attributes through SAML protocol from SAP IAS tenant . It is the second tenant configured in the image using SAML protocol. The metadata is exchanged on both sides and custom attributes set.

On fetching the details from the path /user-api/attributes , I get the response

the custom attributes are not visible in response. However, I checked that the attributes are being fetched in SAML metadata from IAS tenant side.

the change I tried in xs-security.json is this line

Thanks in advance. Any suggestion will be greatly helpful.

gregorw
Active Contributor
0 Kudos

Have you checked that the Assertion Attributes are privided in the SAML Assertions by using SAML-tracer?

vinaykasa
Discoverer
0 Kudos

Hi Gregor,

Yes I used the tracer to see the attributes being fetched in the response.

Accepted Solutions (0)

Answers (1)

Answers (1)

CarlosRoggan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Vinay,

the foreign-scope statement is used to accept scopes that are granted from different xsuaa instance.
See here for a detailed description.

In your case, as far as I understand, you want to access the attributes from your app in BTP?
To solve that, you need to define attributes in your xs-securitry.json file.
Then, in cockpit, map these attributes to the IAS-attributes

In this tutorial I've played with IAS-attributes and customAttributes and checked them in BTP, in an app that is bound to XSUAA.
Please check it out and let us know if it solves your issue