# IRPCAnonymousLoginOperations.GetAnonymousAuthenticationSettings

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

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

Badges: `Vault API / standard` `write` `session`

Tells whether anonymous access to the vault is turned on.

- **Service:** [Anonymous login](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCAnonymousLoginOperations/index.md) `MFiles.IRPCAnonymousLoginOperations`
- **gRPC method:** `/MFiles.IRPCAnonymousLoginOperations/GetAnonymousAuthenticationSettings`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-anonymous-authentication-settings`
- **Request:** [`GetAnonymousAuthenticationSettingsRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCAnonymousLoginOperations/GetAnonymousAuthenticationSettings/index.md#request)
- **Response:** [`GetAnonymousAuthenticationSettingsResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCAnonymousLoginOperations/GetAnonymousAuthenticationSettings/index.md#response)
- **Book and level:** Vault API, standard
- **Kind:** write
- **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

- Requires the vault rights `manage_users` and `license_allows_modifications`.
- Anonymous access counts as on when exactly one anonymous user account exists and it is allowed
  to log in.
- Not cacheable: the setting is not covered by the metadata structure version.

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

## Request: GetAnonymousAuthenticationSettingsRequest

No fields.

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

## Response: GetAnonymousAuthenticationSettingsResponse

> 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 |
|---|---|---|
| `anonymous_authentication_settings` | [`AnonymousAuthenticationSettings`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.AnonymousAuthenticationSettings/index.md) | The current setting. `anonymous_authentication_enabled` is false (unset) when anonymous access is off. |
| `anonymous_authentication_settings.anonymous_authentication_enabled` | `bool` | Boolean indicating whether anonymous authentication should be enabled or disabled. |
