Predefined attributes for a new role

Is there some way to set up predefined attributes for a role?
When I create a new role i need the role already would have some predefined attributes

I don’t believe roles have attributes in Keycloak.

You can set hardcoded attributes when importing syncing users from federated bases using mappers.

That is incorrect. Both realm and client roles have attributes.

@mzubzzz What do you mean by “predefined attributes for a role”? Role attributes can be set on role creation. Take a look at the admin API https://www.keycloak.org/docs-api/18.0/rest-api/index.html#_createrole for role creation.

You are correct. Apparently, only composite rules have no attributes.