- Resource: GcpUserAccessBinding
- Principal
- SessionSettings
- SessionReauthMethod
- Application
- ScopedAccessSettings
- AccessScope
- ClientScope
- AccessSettings
- Methods
Resource: GcpUserAccessBinding
Restricts access to Cloud Console and Google Cloud APIs for a set of users using Context-Aware Access.
| JSON representation |
|---|
{ "name": string, "groupKey": string, "principal": { object ( |
| Fields | |
|---|---|
name |
Immutable. Identifier. 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" |
groupKey |
Optional. Immutable. Google Group id whose users are subject to this binding's restrictions. See "id" in the Google Workspace Directory API's Group 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" |
principal |
Optional. Immutable. The principal that is subject to the access policies in this policy binding. |
accessLevels[] |
Optional. 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" |
dryRunAccessLevels[] |
Optional. Dry run access level that will be evaluated but will not be enforced. The access denial based on dry run policy will be logged. Only one access level is supported, not multiple. This list must have exactly one element. Example: "accessPolicies/9522/accessLevels/device_trusted" |
sessionSettings |
Optional. The Google Cloud session length (GCSL) policy for the group key. |
restrictedClientApplications[] |
Optional. Deprecated: Use |
scopedAccessSettings[] |
Optional. A list of scoped access settings that set this binding's restrictions on a subset of applications. This field cannot be set if restrictedClientApplications is set. |
Principal
The comprehensive identity container supporting all 1p and 3p identities. Only one of them can be set to create an access binding. Next ID: 5
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
federatedPrincipal |
Immutable. An IAM principal identifier for the federated workforce or workload to assign the policy to. Examples include the following:
|
serviceAccountProjectNumber |
Immutable. Project number used to assign policies to all service accounts in a Google Cloud project. |
serviceAccount |
Immutable. Service account email used to assign policies to a single service account. |
SessionSettings
Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings.
| JSON representation |
|---|
{
"sessionReauthMethod": enum ( |
| Fields | |
|---|---|
sessionReauthMethod |
Optional. Session method when user's Google Cloud session is up. |
sessionLength |
Optional. The session length. Setting this field to zero allows for sessions that are active indefinitely. Also, setting A duration in seconds with up to nine fractional digits, ending with ' |
maxInactivity |
Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps. A duration in seconds with up to nine fractional digits, ending with ' |
useOidcMaxAge |
Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the sessionLength field and the max_age OIDC param. |
sessionLengthEnabled |
Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite. If |
SessionReauthMethod
The session challenges proposed to users when the Google Cloud session length is up.
| Enums | |
|---|---|
SESSION_REAUTH_METHOD_UNSPECIFIED |
If method is undefined in the API, LOGIN will be used by default. |
LOGIN |
The user will be prompted to perform regular login. Users who are enrolled for two-step verification and haven't chosen "Remember this computer" will be prompted for their second factor. |
SECURITY_KEY |
The user will be prompted to authenticate using their security key. If no security key has been configured, then authentication will fallback to LOGIN. |
PASSWORD |
The user will be prompted for their password. |
Application
An application that accesses Google Cloud APIs.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field identifier. An identifier of the application. identifier can be only one of the following: |
|
clientId |
The OAuth client ID of the application. |
name |
The name of the application. Example: "Cloud Console" |
ScopedAccessSettings
A relationship between access settings and its scope.
| JSON representation |
|---|
{ "scope": { object ( |
| Fields | |
|---|---|
scope |
Optional. Application, etc. to which the access settings will be applied to. Implicitly, this is the scoped access settings key; as such, it must be unique and non-empty. |
activeSettings |
Optional. Access settings for this scoped access settings. This field may be empty if dryRunSettings is set. |
dryRunSettings |
Optional. Dry-run access settings for this scoped access settings. This field may be empty if activeSettings is set. |
AccessScope
Access scope represents the client scope, etc. to which the settings will be applied to.
| JSON representation |
|---|
{
"clientScope": {
object ( |
| Fields | |
|---|---|
clientScope |
Optional. Client scope for this access scope. |
ClientScope
Client scope represents the application, project, etc. subject to this binding's restrictions.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field scope. Client Scope Identifier scope can be only one of the following: |
|
restrictedClientApplication |
Optional. The application that is subject to this binding's scope. |
AccessSettings
Access settings represent the set of conditions that must be met for access to be granted. At least one of the fields must be set.
| JSON representation |
|---|
{
"accessLevels": [
string
],
"sessionSettings": {
object ( |
| Fields | |
|---|---|
accessLevels[] |
Optional. 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" |
sessionSettings |
Optional. Session settings applied to user access on a given AccessScope. |
Methods |
|
|---|---|
|
Creates a GcpUserAccessBinding. |
|
Deletes a GcpUserAccessBinding. |
|
Gets the GcpUserAccessBinding with the given name. |
|
Lists all GcpUserAccessBindings for a Google Cloud organization. |
|
Updates a GcpUserAccessBinding. |