Authorization requires the following IAM permission on the specified resource parent:
alloydb.users.create
Query parameters
Parameters
userId
string
Required. ID of the requesting object.
requestId
string
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if the original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
validateOnly
boolean
Optional. If set, the backend validates the request, but doesn't actually execute it.
[[["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-07-15 UTC."],[[["\u003cp\u003eThis endpoint allows for the creation of a new User within a specified project, location, and cluster.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e parameter in the URL is required and necessitates the \u003ccode\u003ealloydb.users.create\u003c/code\u003e IAM permission for authorization.\u003c/p\u003e\n"],["\u003cp\u003eA unique \u003ccode\u003euserId\u003c/code\u003e is required for each user creation request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003erequestId\u003c/code\u003e parameter allows for request de-duplication to prevent accidental duplicate user creation.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint returns a newly created User object upon successful creation, and uses the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.clusters.users.create\n\nCreates a new User in a given project, location, and cluster.\n\n### HTTP request\n\n`POST https://alloydb.googleapis.com/v1/{parent=projects/*/locations/*/clusters/*}/users`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [User](/alloydb/docs/reference/rest/v1/projects.locations.clusters.users#User).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [User](/alloydb/docs/reference/rest/v1/projects.locations.clusters.users#User).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]