# Policy Simulator v1 API - Enum AccessState (1.4.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.4.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.AccessState)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/1.3.0/Google.Cloud.PolicySimulator.V1.AccessState)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/1.2.0/Google.Cloud.PolicySimulator.V1.AccessState)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/1.1.0/Google.Cloud.PolicySimulator.V1.AccessState)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/1.0.0/Google.Cloud.PolicySimulator.V1.AccessState)

    public enum AccessState

Reference documentation and code samples for the Policy Simulator v1 API enum AccessState.

Whether a principal has a permission for a resource.

## Namespace

[Google.Cloud.PolicySimulator.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1)

## Assembly

Google.Cloud.PolicySimulator.V1.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `Granted` | The principal has the permission. |
| `NotGranted` | The principal does not have the permission. |
| `UnknownConditional` | The principal has the permission only if a condition expression evaluates to `true`. |
| `UnknownInfoDenied` | The user who created the \[Replay\]\[google.cloud.policysimulator.v1.Replay\] does not have access to all of the policies that Policy Simulator needs to evaluate. |
| `Unspecified` | Default value. This value is unused. |