Parameter run_as for "role"

Hi all.

Can I use run_as for "role". For example

I several roles: [user_role, customer_role, client_role] and one user: jonny

Can I submit request as user "jonny", to determine what role I want to get the result?

Thanks

Hi Alex,

The run as feature is tied to a user and not roles. When you run as a different user, the request will execute as the run as user with that user's roles.

For example, lets say you have an admin user that submits a run as request for jonny. This request will execute with the privileges of all the roles that are assigned to jonny.