**Source URL:** https://limited.veevavault.dev/commercial/security/tree/how-to-crud-tree-security.md

# How to Create, Edit, & Update Security Trees

As a Vault Admin, you can configure security trees in the Vault UI. Learn more about [how to configure security trees in Vault Help](https://platform.veevavault.help/en/lr/828859).

As a developer, you can create, update, or delete a security tree with Vault API’s [Execute MDL Script](/vault-api/api-reference/26.2/metadata-definition-language-mdl/execute-mdl-script) endpoint. You can also execute MDL commands with [Vault Toolbox](/mdl/documentation/guides/vault-toolbox).

For example, the following request will create a security tree:

```
CREATE Object my_security_tree_mdl__c (
   label('My Security Tree'),
   label_plural('My Security Trees'),
   active(true),
   object_class('securitytree'),
   user_tree_assignment_object_name('user_tree_assignment'),
   audit(true),
   in_menu(true)
);

```

Learn more about security tree-specific attributes in [Understanding Tree Security](/security/tree/understanding-tree-security/). You can also learn more about `Object` component fields, such as `audit` and `in_menu`, in the [Component Reference](/mdl/component-reference/component-types/object).



---

**Previous:** [How to Enable Tree Security](/commercial/security/tree/how-to-enable-tree-security)  
**Next:** [Working with Security Tree Nodes](/commercial/security/tree/working-with-tree-security-nodes)