# CredentialsType

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

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

The kind of account in `Credentials`.

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

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-CREDENTIALS_TYPE_UNINITIALIZED"></a>`CREDENTIALS_TYPE_UNINITIALIZED` | 0 | Treated like `CREDENTIALS_TYPE_AUTOMATIC`. |
| <a id="v-CREDENTIALS_TYPE_MFILES"></a>`CREDENTIALS_TYPE_MFILES` | 1 | An M-Files account (password stored by M-Files). |
| <a id="v-CREDENTIALS_TYPE_WINDOWS"></a>`CREDENTIALS_TYPE_WINDOWS` | 2 | A Windows or domain account, verified by Windows on the server. |
| <a id="v-CREDENTIALS_TYPE_AUTOMATIC"></a>`CREDENTIALS_TYPE_AUTOMATIC` | 3 | Try an M-Files account first; if that fails, a Windows account. |

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

## Used in fields

- [`Credentials.type`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Credentials/index.md#f-type): The kind of account. `CREDENTIALS_TYPE_MFILES` for M-Files accounts, `CREDENTIALS_TYPE_WINDOWS` for Windows accounts; `CREDENTIALS_TYPE_AUTOMATIC` (and the unset value) tries M-Files first, then Windows.
