1. Docs
  2. Hierarchy
  3. Enable and build a hierarchy

Enable and build a hierarchy

Switch an Environment to hierarchical access control in the Developer Console, define its levels, build the tree of nodes, and revert to flat if you need to.

Enable the hierarchy

Every Environment starts on flat access control. Switching it to the hierarchy model happens on Access Control → Overview, where the two models are presented as cards. The switch is per Environment: enabling it on Development leaves Production flat.

Application
Developer Console
Path
Access ControlOverview
Opens with
  • applications.view Read the Account's Applications and Environments, and open an Environment's Overview.
Context
Select an Application and an Environment in the switcher first; the page belongs to that Environment.
Enable the hierarchy
Open Access Control → Overview for the Environment in the switcher. Two cards show: Flat Access Control, currently active, and Hierarchical Access Control, whose button reads Enable Hierarchy.Click Enable Hierarchy. The Enable Hierarchical Access Control wizard opens on an explainer step, What is Hierarchical Access Control?. Click Next.On Define Your Levels, add the tiers of your organization from the top down, for example Region, District, Store. Next stays disabled while there are no levels, an empty row, or two levels with the same name.On Review Your Structure, check the table: the root at level 0, then your levels at 1, 2, 3. Click Enable Hierarchy.The wizard switches to Hierarchy Enabled with two actions. Click Build Your Hierarchy to go straight to the Environment's Hierarchy page, where the Access Tree holds a single root node named after the Application.Back on Overview, the Hierarchical Access Control card is now the active one and its button reads Manage Hierarchy; the flat card's button reads Enable Flat.

Build the tree

Access Control → Hierarchy is the tree editor. Select a node in the Access Tree on the left to see it on the right; creating, moving, editing, and deleting all start from the selected node. Each level may contain any level below it, so the Node Type offered when you create a node is always a tier beneath its parent.

Application
Developer Console
Path
Access ControlHierarchy
Opens with
  • env_structure.view Read the Environment's hierarchy tree and its levels.
Context
Select an Application and an Environment in the switcher first; the page belongs to that Environment. The entry shows only while the Environment runs the hierarchy model.
Build the tree
Select the root node in the Access Tree. The tree's action block shows Create Node; it appears only while you may manage the selected node.Click Create Node. The Add Node dialog opens. Under the root, Node Type offers every level; pick the top one, such as Region, enter a Name, and click Create. A Node created successfully toast appears and the new node is selected under the root.Select the new node and click Create Node again. Node Type now offers only the levels below it; the deepest level offers no child types at all.To move a node, drag it in the tree and drop it onto its new parent. A Node moved successfully toast appears. The drop is refused when the type is not allowed under that parent. If someone else moved the same node first, a Conflict detected dialog offers to retry with the fresh version or refresh the tree.To rename a node, select it, open its Details tab, and click Edit. The Edit Node dialog opens with the current name; change it and click Save. A Node updated successfully toast appears and both the panel headline and the tree label update.To delete a node, select it and use Delete node in the Delete this node group of its Details tab. A Node deleted toast confirms it.
Read how inheritance and node types work →

Change the levels later

The levels you defined in the wizard can be added to, renamed, and reordered afterwards. This happens from the Environment's card on the Applications page rather than on the Hierarchy page.

Application
Developer Console
Path
TenantApplications
Opens with
  • applications.view Read the Account's Applications and Environments, and open an Environment's Overview.
Context
Account-wide. No Application or Environment selection applies.
Change the levels later
Open Tenant → Applications and find the Environment's card under its Application.Open the card's menu and click Manage Levels. The item is present only for an Environment on the hierarchy model.In the Manage levels dialog, add a tier, rename one, or drag to reorder, then click Save. A Levels updated toast confirms it.A tier that already has nodes of its type cannot be renamed or removed; saving such a change is refused with a Failed to update levels toast and the levels are left as they were. Delete or retype those nodes first.

Revert to flat

An Environment can go back to flat access control at any time. Everything below the root is deleted and every active role assignment is consolidated to the Environment level, so the confirmation asks you to type the Environment's slug.

Revert to flat
Open Access Control → Overview. The Flat Access Control card's button reads Enable Flat; click it.The Disable hierarchy dialog explains that every node below the root is deleted and that active assignments consolidate to the Environment level. Type the Environment's slug, for example development, to enable the Disable hierarchy button, then click it.A Hierarchy has been disabled. All assignments are now environment-wide. toast appears. The flat card is active again, and the Hierarchy page shows Hierarchy not enabled with a Configure Hierarchy action that opens the wizard.
If you don't see this

Each control on these pages exists only for someone who may use it. When something described above is missing, one of these is why:

Hierarchy is not in the left nav. The entry shows only while the Environment in the switcher runs the hierarchy model; on a flat Environment, enable it from Overview first. It also needs your administrator role to carry env_structure.view.Overview shows the cards but no Enable Hierarchy or Enable Flat button. Switching the model needs env_structure.manage; with applications.view alone you can read the Overview but not change it.The tree opens but there is no Create Node, Edit, or Delete node. You hold env_structure.view but not env_structure.manage, or the selected node is outside the part of the tree you may manage.Create Node offers no Node Type. The selected node is on the deepest level; nothing can be created beneath it. Select its parent instead.The Environment card has no Manage Levels item. That Environment is on flat access control. Levels exist only on the hierarchy model.Your nodes are missing. Each Environment owns its own tree. Check the Environment in the switcher: nodes created in Development do not exist in Production until you promote them.
Environment
API version
v1.0
On this page Was this page helpful?

Tell us how we can improve this guide.