Hierarchy: user status
hierarchy_check_ah_user_v1Check the current user's role in the account hierarchy to verify company, chief, or employee status before linking items.
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 | |||