In a workflow on a DocType, a Workflow Action is gated entirely by the transition’s Allowed role — so it shows up for, and can be completed by, anyone who holds that role.
I need approval on a given document to be specific to one user (resolved per document from a lookup table), even though several users share the same approver role. I’d like to avoid minting a separate one-person role for each approver.
I tried a transition condition using frappe.session.user, but that only toggles the Approve button — the Workflow Action itself stays role-based for both visibility and completion, and since the condition is evaluated as the sender at creation, the action sometimes isn’t created at all.
Is there a supported way to scope a Workflow Action to a specific user without per-user roles — or is the intended pattern to keep the role broad and handle per-person routing via assignment / ToDo?
Thanks!