on 12-12-2023 8:50 PM
Hi All,
I am struggleing to capture a property that sholud flow from Azure AD to BTP, I want to read this proprty in my CAP applicatio, I can see this propery in SAML trace and in XSUAA ../support.jsp. The property dosen't even exist in JWT token or in any user attribures. I check below blogs but no luck.
https://answers.sap.com/questions/13926364/provision-users-groups-from-azure-to-ias-via-ips.html
https://answers.sap.com/questions/13909115/sap-cap-how-to-read-user-attributes-in-node-js.html
Have you checked: XSUAA-based Authentication? It mentions:
"Authentication kind xsuaa
is a logical extension of kind jwt
that additionally offers access to SAML attributes through req.user.attr
(for example, req.user.attr.familyName
)."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I agree with gregorw, this should work respectively. Eventually, you might need to map the respective SAML attributes in your XSUAA role collection. Also check out the following question, which might provide further guidance.
https://answers.sap.com/questions/13899191/cap-authorization-unable-to-retrieve-user-attribut.html
The only limitation I am aware of is the fact that in Node.js, user attributes cannot be used as part of @cds.on.insert and similar definitions of your CDS model, but you should still be able to access them as part of your custom handlers.
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.