# VaultVariable

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.VaultVariable/

A single vault variable.

- **Full name:** `MFiles.VaultVariable`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-name"></a>`name` | `string` | 1 | The name of the vault variable. |
| <a id="f-value"></a>`value` | `bytes` | 2 | The value of the variable in a serialized format. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCVaultAdmin.SetVaultVariables](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultAdmin/SetVaultVariables/index.md): Sets the Microsoft Entra ID (Azure AD) consent mode of the vault.
- [IRPCVaultsAdmin.CreateNewVault](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdmin/CreateNewVault/index.md): Creates a new document vault.
- [IRPCVaultsAdmin.UpdateVault](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdmin/UpdateVault/index.md): Changes the definition of a vault: name and other registration data, data folders, database, file data storage and vault variables.
- [IRPCVaultsAdminBasic.GetGroundLinkProxyAdmin](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdminBasic/GetGroundLinkProxyAdmin/index.md): Gets one Ground Link proxy vault with its administrative details.
- [IRPCVaultsAdminBasic.GetVaultAdmin](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdminBasic/GetVaultAdmin/index.md): Gets one ordinary vault with its administrative details.

<a id="used-in-fields"></a>

## Used in fields

- [`VaultVariableArray.value`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.VaultVariableArray/index.md#f-value): Array of vault variables (VaultVariable).
- [`SetVaultVariablesRequest.vaultvariables`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultAdmin/SetVaultVariables/index.md#request): The vault variables to set; only `AZUREACTIVEDIRECTORYCONSENTMODE` is accepted.
- [`CreateNewVaultRequest.vault_variables`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdmin/CreateNewVault/index.md#request): Vault variables to set in the new vault.
- [`UpdateVaultRequest.vault_variables`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdmin/UpdateVault/index.md#request): Vault variables to set.
- [`GetVaultAdminResponse.vault_variables`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdminBasic/GetVaultAdmin/index.md#response): The vault variables, such as the full-text search language and the ACL mode, returned to every caller.
- [`GetGroundLinkProxyAdminResponse.vault_variables`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdminBasic/GetGroundLinkProxyAdmin/index.md#response): Always empty for Ground Link proxy vaults.
