Is there a way to get user attributes for current user

i am trying to define dynamic roles based on attributes but getting errors and would like to get exact values that are assigned to current user.

GET _opendistro/_security/authinfo

this just gives me custom_attribute_names which are just names but no values, is there a way to get values?

@jathin12 What OS version are you on?

i am currently using aws opensearch version 7.9.x