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.
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"
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.
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"
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).
Should not be specified by the client during creation.
Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eGcpUserAccessBinding\u003c/code\u003e class within the Google Identity Access Context Manager v1 API, which restricts access to Cloud Console and Google Cloud APIs for users based on Context-Aware Access.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eGcpUserAccessBinding\u003c/code\u003e class is 2.5.0, with previous versions ranging from 2.4.0 to 1.2.0 also available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGcpUserAccessBinding\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eAccessLevels\u003c/code\u003e and \u003ccode\u003eGroupKey\u003c/code\u003e, which define the access levels required for users and the Google Group ID whose members are subject to the binding's restrictions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property is immutable and is assigned by the server during creation.\u003c/p\u003e\n"]]],[],null,["# Identity Access Context Manager v1 API - Class GcpUserAccessBinding (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)\n- [2.4.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.4.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)\n- [2.3.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.3.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)\n- [2.2.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.2.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)\n- [2.1.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.1.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)\n- [2.0.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.0.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)\n- [1.5.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.5.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)\n- [1.4.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.4.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)\n- [1.3.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.3.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding)\n- [1.2.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.2.0/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding) \n\n public sealed class GcpUserAccessBinding : IMessage\u003cGcpUserAccessBinding\u003e, IEquatable\u003cGcpUserAccessBinding\u003e, IDeepCloneable\u003cGcpUserAccessBinding\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Identity Access Context Manager v1 API class GcpUserAccessBinding.\n\nRestricts access to Cloud Console and Google Cloud APIs for a set of users\nusing Context-Aware Access. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GcpUserAccessBinding \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GcpUserAccessBinding](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GcpUserAccessBinding](/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](/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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Identity.AccessContextManager.V1](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1)\n\nAssembly\n--------\n\nGoogle.Identity.AccessContextManager.V1.dll\n\nConstructors\n------------\n\n### GcpUserAccessBinding()\n\n public GcpUserAccessBinding()\n\n### GcpUserAccessBinding(GcpUserAccessBinding)\n\n public GcpUserAccessBinding(GcpUserAccessBinding other)\n\nProperties\n----------\n\n### AccessLevels\n\n public RepeatedField\u003cstring\u003e AccessLevels { get; }\n\nRequired. Access level that a user must have to be granted access. Only one access\nlevel is supported, not multiple. This repeated field must have exactly\none element.\nExample: \"accessPolicies/9522/accessLevels/device_trusted\"\n\n### AccessLevelsAsAccessLevelNames\n\n public ResourceNameList\u003cAccessLevelName\u003e AccessLevelsAsAccessLevelNames { get; }\n\n[AccessLevelName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName)-typed view over the [AccessLevels](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding#Google_Identity_AccessContextManager_V1_GcpUserAccessBinding_AccessLevels) resource name property.\n\n### GcpUserAccessBindingName\n\n public GcpUserAccessBindingName GcpUserAccessBindingName { get; set; }\n\n[GcpUserAccessBindingName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBindingName)-typed view over the [Name](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.GcpUserAccessBinding#Google_Identity_AccessContextManager_V1_GcpUserAccessBinding_Name) resource name property.\n\n### GroupKey\n\n public string GroupKey { get; set; }\n\nRequired. Immutable. Google Group id whose members are subject to this binding's restrictions.\nSee \"id\" in the [G Suite Directory API's Groups resource](https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource).\nIf a group's email address/alias is changed, this resource will continue\nto point at the changed group. This field does not accept group email\naddresses or aliases.\nExample: \"01d520gv4vjcrht\"\n\n### Name\n\n public string Name { get; set; }\n\nImmutable. Assigned by the server during creation. The last segment has an arbitrary\nlength and has only URI unreserved characters (as defined by\n[RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)).\nShould not be specified by the client during creation.\nExample: \"organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N\""]]