Reference documentation and code samples for the Access Context Manager V1 Client class GcpUserAccessBinding.
Restricts access to Cloud Console and Google Cloud APIs for a set of users
using Context-Aware Access.
Generated from protobuf messagegoogle.identity.accesscontextmanager.v1.GcpUserAccessBinding
Namespace
Google \ Identity \ AccessContextManager \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Immutable. Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined byRFC 3986 Section 2.3). Should not be specified by the client during creation. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"
↳ group_key
string
Required. Immutable. Google Group id whose members are subject to this binding's restrictions. See "id" in theG 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"
↳ access_levels
array
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"
getName
Immutable. Assigned by the server during creation. The last segment has an arbitrary
length and has only URI unreserved characters (as defined byRFC 3986 Section 2.3).
Should not be specified by the client during creation.
Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"
Returns
Type
Description
string
setName
Immutable. Assigned by the server during creation. The last segment has an arbitrary
length and has only URI unreserved characters (as defined byRFC 3986 Section 2.3).
Should not be specified by the client during creation.
Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getGroupKey
Required. Immutable. Google Group id whose members are subject to this binding's restrictions.
See "id" in theG 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"
Returns
Type
Description
string
setGroupKey
Required. Immutable. Google Group id whose members are subject to this binding's restrictions.
See "id" in theG 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"
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getAccessLevels
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.
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.
[[["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."],[],[],null,["# Access Context Manager V1 Client - Class GcpUserAccessBinding (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/access-context-manager/latest/V1.GcpUserAccessBinding)\n- [1.0.3](/php/docs/reference/access-context-manager/1.0.3/V1.GcpUserAccessBinding)\n- [0.5.5](/php/docs/reference/access-context-manager/0.5.5/V1.GcpUserAccessBinding)\n- [0.4.5](/php/docs/reference/access-context-manager/0.4.5/V1.GcpUserAccessBinding)\n- [0.3.5](/php/docs/reference/access-context-manager/0.3.5/V1.GcpUserAccessBinding) \nReference documentation and code samples for the Access Context Manager V1 Client class GcpUserAccessBinding.\n\nRestricts access to Cloud Console and Google Cloud APIs for a set of users\nusing Context-Aware Access.\n\nGenerated from protobuf message `google.identity.accesscontextmanager.v1.GcpUserAccessBinding`\n\nNamespace\n---------\n\nGoogle \\\\ Identity \\\\ AccessContextManager \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\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)).\n\nShould not be specified by the client during creation.\nExample: \"organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N\"\n\n### setName\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)).\n\nShould not be specified by the client during creation.\nExample: \"organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N\"\n\n### getGroupKey\n\nRequired. Immutable. Google Group id whose members are subject to this binding's restrictions.\n\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### setGroupKey\n\nRequired. Immutable. Google Group id whose members are subject to this binding's restrictions.\n\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### getAccessLevels\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.\n\nExample: \"accessPolicies/9522/accessLevels/device_trusted\"\n\n### setAccessLevels\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.\n\nExample: \"accessPolicies/9522/accessLevels/device_trusted\""]]