Method: projects.locations.instances.users.enable

Re-enables a disabled User: sets state back to ACTIVE. No role is restored; enable each role again with users.enableRole, with its usual approvals. This needs no Admin approval because it grants nothing, and it doesn't trigger resharing, because a disabled User holds no key shares.

Fails with FAILED_PRECONDITION if the User is not DISABLED.

HTTP request

POST https://mpc.googleapis.com/v1beta/{name=projects/*/locations/*/instances/*/users/*}:enable

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the User to re-enable. Format: projects/{project}/locations/{location}/instances/{instance}/users/{user} It takes the form projects/{project}/locations/{location}/instances/{instance}/users/{user}.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of User.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.