It is now possible to read the permissions on a person record with automation rules.
Permissions is an array of type permission that exposes the following fields and roles:
With these, the following automation rule expressions can now be created, for example:
Check if a person is a billable user:
Check if person is a workflow manager in the widget data center account:
mgr: person.permissions.detect(account = 'wdc').workflow_manager
Check if the person has any permissions in the account of the automation rule:
role: person.permissions.any?(account = rule_account)