Roles based on templates

licensed elastic search support roles and document level security by using role templates

i am trying to generate dynamic roles based on metadata from saml based sso token. saml claims are stored in user metadata and then roles use that metadata to filter documents that a user can view in kibana via role templates as documented on the link i shared.

trying to find if something similar is possible in aws es?

It seems it is possible based on user attributes.

and then setting dls with user attributes.
But i want to look at the different attributes available to a logged in user… is there some api or kibana uri that i can use to find that out? on licensed kibana you can hit https://kibana-hostname/api/security/v1/me to find that out