# Identity Access Context Manager v1 API - Class GcpUserAccessBinding (2.6.0)

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

- [2.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.5.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.4.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.3.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.2.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.1.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.0.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.5.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.4.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.3.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.2.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)

    public sealed class GcpUserAccessBinding : IMessage<GcpUserAccessBinding>, IEquatable<GcpUserAccessBinding>, IDeepCloneable<GcpUserAccessBinding>, IBufferMessage, IMessage

Reference documentation and code samples for the Identity Access Context Manager v1 API class GcpUserAccessBinding.

Restricts access to Cloud Console and Google Cloud APIs for a set of users
using Context-Aware Access.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GcpUserAccessBinding

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GcpUserAccessBinding](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GcpUserAccessBinding](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GcpUserAccessBinding](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Identity.AccessContextManager.V1.dll

## Constructors

### GcpUserAccessBinding()

    public GcpUserAccessBinding()

### GcpUserAccessBinding(GcpUserAccessBinding)

    public GcpUserAccessBinding(GcpUserAccessBinding other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding` |

## Properties

### AccessLevels

    public RepeatedField<string> AccessLevels { get; }

Required. Access level that a user must have to be granted access. Only one access
level is supported, not multiple. This repeated field must have exactly
one element.
Example: "accessPolicies/9522/accessLevels/device_trusted"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### AccessLevelsAsAccessLevelNames

    public ResourceNameList<AccessLevelName> AccessLevelsAsAccessLevelNames { get; }

[AccessLevelName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName)-typed view over the [AccessLevels](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding#Google_Identity_AccessContextManager_V1_GcpUserAccessBinding_AccessLevels) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNameList-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName` |   |

### GcpUserAccessBindingName

    public GcpUserAccessBindingName GcpUserAccessBindingName { get; set; }

[GcpUserAccessBindingName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBindingName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding#Google_Identity_AccessContextManager_V1_GcpUserAccessBinding_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBindingName` |   |

### GroupKey

    public string GroupKey { get; set; }

Required. Immutable. Google Group id whose members are subject to this binding's restrictions.
See "id" in the [G Suite Directory API's Groups resource](https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource).
If a group's email address/alias is changed, this resource will continue
to point at the changed group. This field does not accept group email
addresses or aliases.
Example: "01d520gv4vjcrht"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Name

    public string Name { get; set; }

Immutable. Assigned by the server during creation. The last segment has an arbitrary
length and has only URI unreserved characters (as defined by
[RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)).
Should not be specified by the client during creation.
Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |