# IRPCVaultLoginsAdmin.GetFullNameAndEmailInVault

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Vault login accounts](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultLoginsAdmin/index.md)

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

Badges: `Administration API / specialized` `admin` `session` `idempotent`

Looks up the full name and email address of a Windows account in the directory.

- **Service:** [Vault login accounts](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultLoginsAdmin/index.md) `MFiles.IRPCVaultLoginsAdmin`
- **gRPC method:** `/MFiles.IRPCVaultLoginsAdmin/GetFullNameAndEmailInVault`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-full-name-and-email-in-vault`
- **Request:** [`GetFullNameAndEmailInVaultRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultLoginsAdmin/GetFullNameAndEmailInVault/index.md#request)
- **Response:** [`GetFullNameAndEmailInVaultResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultLoginsAdmin/GetFullNameAndEmailInVault/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

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

## Remarks

- Requires the vault right `manage_users`. Reads the vault's default user synchronization plugin
  if it synchronizes the account's domain, otherwise the domain directory. Used to prefill a new
  login account.
- An empty account name fails with "The parameter is incorrect.".

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

## Request: GetFullNameAndEmailInVaultRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `account_name` | `string` | The Windows account name, `DOMAIN\user`. |

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

## Response: GetFullNameAndEmailInVaultResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `full_name` | `string` | The full name from the directory. |
| `email` | `string` | The email address from the directory. |
