Role attribute to user attribute

Hi,

Role R
Role R has attribute A

User U has role R

I thought that this user U has now set attribute A. Isn’t this automatically the case? Or is this something missing for SAML, which I use in keycloak.

Thank you in advance.