# IRPCLoginsAdmin.GetFullNameAndEmail

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) > [Server login accounts](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/index.md)

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

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

Looks up the full name and e-mail address of a Windows account in its directory.

- **Service:** [Server login accounts](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/index.md) `MFiles.IRPCLoginsAdmin`
- **gRPC method:** `/MFiles.IRPCLoginsAdmin/GetFullNameAndEmail`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-full-name-and-email`
- **Request:** [`GetFullNameAndEmailRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/GetFullNameAndEmail/index.md#request)
- **Response:** [`GetFullNameAndEmailResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/GetFullNameAndEmail/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 system administrator server role (server right `manage_logins`).
- Reads the directory (Active Directory, or the user synchronization plug-in configured for the
  domain), not the M-Files login. Use [GetLogin](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/GetLogin/index.md) for the
  values stored in M-Files.

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

## Request: GetFullNameAndEmailRequest

> 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 in `DOMAIN\user` form. |

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

## Response: GetFullNameAndEmailResponse

> 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` | Receives the full name. |
| `email` | `string` | Receives the email address. |

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

## Related methods

- [GetLogin](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/GetLogin/index.md): Gets one login account by account name.
