# VaultData

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.VaultData/

The logged-in user's identity and settings in the session's vault.

- **Full name:** `MFiles.VaultData`
- **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-user_id"></a>`user_id` | `int32` | 1 | The user's ID in this vault: the ID to use for the current user in properties, permissions and searches. |
| <a id="f-is_internal_user"></a>`is_internal_user` | `bool` | 2 | Is the user an internal user? |
| <a id="f-substitute_users"></a>`substitute_users` | repeated [`UserOrUserGroupID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.UserOrUserGroupID/index.md) | 3 | `user_id` first, followed by the users for whom this user is a substitute. |
| <a id="f-user_and_group_memberships"></a>`user_and_group_memberships` | repeated [`UserOrUserGroupID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.UserOrUserGroupID/index.md) | 4 | `user_id` first, followed by the user groups the user belongs to, directly or indirectly. |
| <a id="f-vault_attachment"></a>`vault_attachment` | `string` | 5 | Identifies the vault's current attachment. It changes when the vault is detached and attached again or restored; a client cache keyed by it is then stale. |
| <a id="f-search_engine"></a>`search_engine` | [`SearchEngine`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.SearchEngine/index.md) | 6 | Specifies the search engine of the vault. Values: `SEARCH_ENGINE_UNSPECIFIED` (0), `SEARCH_ENGINE_DT_SEARCH` (1), `SEARCH_ENGINE_IDOL` (2), `SEARCH_ENGINE_AZURE_SEARCH` (3), `SEARCH_ENGINE_SMART_SEARCH` (4), `SEARCH_ENGINE_AINO_SEARCH` (5), `SEARCH_ENGINE_GOLDFISH` (6). |
| <a id="f-indexes_for_search"></a>`indexes_for_search` | repeated [`IndexForSearch`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.IndexForSearch/index.md) | 7 | Available indexes for searching. |
| <a id="f-language"></a>`language` | [`Language`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Language/index.md) | 8 | The user's language in this vault. The code and name may be empty. |
| <a id="f-timezone"></a>`timezone` | [`TimeZoneInformation`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.TimeZoneInformation/index.md) | 9 | The time zone of this vault. |
| <a id="f-acl_mode"></a>`acl_mode` | [`ACLMode`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ACLMode/index.md) | 10 | The ACL mode of the vault. Values: `ACLMODE_SIMPLE` (0), `ACLMODE_COMPONENT_BASED` (1). |
| <a id="f-is_valid_external_user"></a>`is_valid_external_user` | `bool` | 11 | True if the logged-in user has a valid (well-formed GUID) external identity, e.g. from Microsoft Entra. The external ID itself is not sent to the client. |

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

## Used in fields

- [`SessionData.vault_data`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SessionData/index.md#f-vault_data): The user's identity in the vault. Unset for a server-level session.
