Hierarchy: user status
hierarchy_check_ah_user_v1Checks the current user's role in the account hierarchy before linking items. Returns flags indicating if the user is a company, chief, or employee, and the associated company ID.
Instructions
Checks the status of the current user within the account hierarchy (check_ah_user). Returns the flags isCompany, isChief, isEmployee and avitoCompanyId — whether it is a company, a chief, an employee, and which company it is linked to. Read-only. Call before hierarchy_link_items_v1 to make sure the user belongs to a hierarchy and has the required role.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||