Hierarchy: user status
hierarchy_check_ah_user_v1Retrieve the current user's hierarchy status (company, chief, employee) and linked company ID. Use this to verify the user has the required role 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 | |||