# IRPCLogin.GetVaultConnectionInfo

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Vault API](https://developer.m-files.com/APIs/gRPC-API/vault/index.md) > [Login and sessions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/index.md)

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

Badges: `Vault API / core` `session` `session`

Gets the full connection information of the current vault session, in the form the M-Files COM
API uses.

- **Service:** [Login and sessions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/index.md) `MFiles.IRPCLogin`
- **gRPC method:** `/MFiles.IRPCLogin/GetVaultConnectionInfo`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-vault-connection-info`
- **Request:** [`GetVaultConnectionInfoRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/GetVaultConnectionInfo/index.md#request)
- **Response:** [`GetVaultConnectionInfoResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/GetVaultConnectionInfo/index.md#response)
- **Book and level:** Vault API, core
- **Kind:** session
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

Used by M-Files components; applications should use
[GetVaultSessionInfo](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/GetVaultSessionInfo/index.md) and the `session_data`
returned at login instead. Requires a vault session. The RPC binding fields are left empty.

<a id="request"></a>

## Request: GetVaultConnectionInfoRequest

No fields.

<a id="response"></a>

## Response: GetVaultConnectionInfoResponse

> Nested message fields are expanded to depth 2 only, to keep the page small (the full expansion has more rows); follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `connection_info` | [`VaultConnectionInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.VaultConnectionInfo/index.md) | The vault connection information of the user's session. |
| `connection_info.connection_mode` | [`MFilesAPIMode`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.MFilesAPIMode/index.md) | The connection mode of M-Files API. Values: `MFILES_APIMODE_NORMAL` (0), `MFILES_APIMODE_INTERNAL_SERVER_ACCESS` (1), `MFILES_APIMODE_INTERNAL_SERVER_ACCESS_WITH_VAULT_MANAGEMENT` (2). |
| `connection_info.rpc_binding_string` | `string` | Binding string to the server. |
| `connection_info.minimum_rpc_authentication_level` | `uint32` | Ignored if connectionsecuritymode is specified. RPC_C_AUTHN_LEVEL_NONE or RPC_C_AUTHN_LEVEL_PKT_PRIVACY. Specifies the minimum authentication level to use if the protocol sequence is normal RPC, such as ncacn_ip_tcp. Ignored for other protocol sequences. |
| `connection_info.server_version` | `string` | Server version string (e.g. "10.0.3757" or "10.0.3757.0"). |
| `connection_info.client_computer_name` | `string` | The local computer name override used in the session. |
| `connection_info.vault_guid` | `string` | The GUID of the vault. |
| `connection_info.vault_display_name` | `string` | The name of the vault for display purposes. |
| `connection_info.locale_for_sorting` | `uint32` | Locale used for sorting. |
| `connection_info.session_id` | `bytes` | The session identifier. |
| `connection_info.session_info` | [`SessionInfoServer`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SessionInfoServer/index.md) | General session information. |
| `connection_info.attachment_guid` | `string` | The current attachment GUID of the vault. |
| `connection_info.enable_keep_alive` | `bool` | True to allow the keep-alive thread to run. |
| `connection_info.server_vault_capabilities` | [`ServerVaultCapabilities`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ServerVaultCapabilities/index.md) | Capabilities of M-Files Server and the connected document vault. |
| `connection_info.client_capabilities` | [`ClientCapabilities`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ClientCapabilities/index.md) | Capabilities of M-Files Client that were reported for the server when the connection (session) was established. |
| `connection_info.optional_grpc_cookies` | `string` | Optional cookie data for gRPC connections. May contain multiple "<cookie_name>=<cookie_value>" cookies separated by newline character. |
| `connection_info.server_data` | [`ServerData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ServerData/index.md) | Server data, including the product serial number and deployment type. Used to populate serial number and deployment type on SessionInfo. |
| `connection_info.connection_security_mode` | [`ConnectionSecurityMode`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ConnectionSecurityMode/index.md) | Connection security mode. Overrides dwMinimumAuthenticationLevelIfNormalRPC if specified. Values: `CONNECTION_SECURITY_MODE_UNSPECIFIED` (0), `CONNECTION_SECURITY_MODE_NONE` (1), `CONNECTION_SECURITY_MODE_ENCRYPTED` (2), `CONNECTION_SECURITY_MODE_ENCRYPTED_IF_BUILTIN_KEY_AVAILABLE` (3). |

<a id="related"></a>

## Related methods

- [GetVaultSessionInfo](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/GetVaultSessionInfo/index.md): Gets basic information about the current vault session: server version and ID, vault GUID and name, and the state of the server push channel.
