Hi,
I would like to create a role like this:
POST /_xpack/security/role/my_dynamic_role
{
"run_as" : [ $user ],
...
}
so that, e.g., when a user1
is assigned to my_dynamic_role
that role will be rendered as:
{
"run_as" : [ user1 ]
}
but when a user2
is assigned to my_dynamic_role
that role will be rendered as:
{
"run_as" : [ user2 ]
}
Is it possible to define a role like that somehow?
Thanks