run_as
field in the workflow file and required consent. Let’s break it down.
run_as
blank or omit it entirely, then bot
is the default value used.run_as
value of self
means that the workflow will execute under the context of the operator that uploaded it.
run_as
value of trigger
means that the workflow will execute under the context of the operator that triggered it (or bot if there wasn’t an explicit trigger). For this case, each operator must provide their consent or it’ll fail to run for operators that don’t provide consent.
run_as
value of lead
means that the workflow will execute under the context of the operation admin. Naturally, the operation admin must approve this before this can execute.
run_as
that’s none of the above header values (bot, self, trigger, lead), then it’s assumed that you’re trying to run within the context of a specific operator. If the name matches an existing operator, then that operator must be part of the operation and have granted consent. If you specify the name of a bot, then the lead of the operation must grant consent first.