Deprecated: Create User (Human)​
deprecated
This endpoint has been deprecated and may be removed in future versions of the API.
Create a new user with the type human. The newly created user will get an initialization email if either the email address is not marked as verified or no password is set. If a password is set the user will not be requested to set a new one on the first login.
Header Parameters
x-zitadel-orgid string
The default is always the organization of the requesting user. If you like to get/set a result of another organization include the header. Make sure the user has permission to access the requested data.
application/json
application/grpc
application/grpc-web+proto
Request Body required
userName string
profile object
email object
phone object
initialPassword string
Request Body required
userName string
profile object
email object
phone object
initialPassword string
Request Body required
userName string
profile object
email object
phone object
initialPassword string
Responses
- 200
- default
A successful response.
application/json
application/grpc
application/grpc-web+proto
Schema
Example (from schema)
Schema
userId string
details object
{
"userId": "string",
"details": {
"sequence": "2",
"creationDate": "2024-03-27T06:43:21.214Z",
"changeDate": "2024-03-27T06:43:21.214Z",
"resourceOwner": "69629023906488334"
}
}
Schema
Example (from schema)
Schema
userId string
details object
{
"userId": "string",
"details": {
"sequence": "2",
"creationDate": "2024-03-27T06:43:21.214Z",
"changeDate": "2024-03-27T06:43:21.214Z",
"resourceOwner": "69629023906488334"
}
}
Schema
Example (from schema)
Schema
userId string
details object
{
"userId": "string",
"details": {
"sequence": "2",
"creationDate": "2024-03-27T06:43:21.214Z",
"changeDate": "2024-03-27T06:43:21.214Z",
"resourceOwner": "69629023906488334"
}
}
An unexpected error response.
application/json
application/grpc
application/grpc-web+proto
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /users/human
Authorization
name: OAuth2type: oauth2scopes:openid,urn:zitadel:iam:org:project:id:zitadel:aud
flows: { "authorizationCode": { "authorizationUrl": "$CUSTOM-DOMAIN/oauth/v2/authorize", "tokenUrl": "$CUSTOM-DOMAIN/oauth/v2/token", "scopes": { "openid": "openid", "urn:zitadel:iam:org:project:id:zitadel:aud": "urn:zitadel:iam:org:project:id:zitadel:aud" } } }
Request
Request
curl / cURL
curl -L -X POST 'https://$CUSTOM-DOMAIN/management/v1/users/human' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"userName": "string",
"profile": {
"firstName": "string",
"lastName": "string",
"nickName": "string",
"displayName": "string",
"preferredLanguage": "string",
"gender": "GENDER_UNSPECIFIED"
},
"email": {
"email": "string",
"isEmailVerified": true
},
"phone": {
"phone": "string",
"isPhoneVerified": true
},
"initialPassword": "string"
}'
python / requests
curl -L -X POST 'https://$CUSTOM-DOMAIN/management/v1/users/human' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"userName": "string",
"profile": {
"firstName": "string",
"lastName": "string",
"nickName": "string",
"displayName": "string",
"preferredLanguage": "string",
"gender": "GENDER_UNSPECIFIED"
},
"email": {
"email": "string",
"isEmailVerified": true
},
"phone": {
"phone": "string",
"isPhoneVerified": true
},
"initialPassword": "string"
}'
go / native
curl -L -X POST 'https://$CUSTOM-DOMAIN/management/v1/users/human' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"userName": "string",
"profile": {
"firstName": "string",
"lastName": "string",
"nickName": "string",
"displayName": "string",
"preferredLanguage": "string",
"gender": "GENDER_UNSPECIFIED"
},
"email": {
"email": "string",
"isEmailVerified": true
},
"phone": {
"phone": "string",
"isPhoneVerified": true
},
"initialPassword": "string"
}'
nodejs / axios
curl -L -X POST 'https://$CUSTOM-DOMAIN/management/v1/users/human' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"userName": "string",
"profile": {
"firstName": "string",
"lastName": "string",
"nickName": "string",
"displayName": "string",
"preferredLanguage": "string",
"gender": "GENDER_UNSPECIFIED"
},
"email": {
"email": "string",
"isEmailVerified": true
},
"phone": {
"phone": "string",
"isPhoneVerified": true
},
"initialPassword": "string"
}'
ruby / Net::HTTP
curl -L -X POST 'https://$CUSTOM-DOMAIN/management/v1/users/human' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"userName": "string",
"profile": {
"firstName": "string",
"lastName": "string",
"nickName": "string",
"displayName": "string",
"preferredLanguage": "string",
"gender": "GENDER_UNSPECIFIED"
},
"email": {
"email": "string",
"isEmailVerified": true
},
"phone": {
"phone": "string",
"isPhoneVerified": true
},
"initialPassword": "string"
}'
csharp / RestSharp
curl -L -X POST 'https://$CUSTOM-DOMAIN/management/v1/users/human' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"userName": "string",
"profile": {
"firstName": "string",
"lastName": "string",
"nickName": "string",
"displayName": "string",
"preferredLanguage": "string",
"gender": "GENDER_UNSPECIFIED"
},
"email": {
"email": "string",
"isEmailVerified": true
},
"phone": {
"phone": "string",
"isPhoneVerified": true
},
"initialPassword": "string"
}'
php / cURL
curl -L -X POST 'https://$CUSTOM-DOMAIN/management/v1/users/human' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"userName": "string",
"profile": {
"firstName": "string",
"lastName": "string",
"nickName": "string",
"displayName": "string",
"preferredLanguage": "string",
"gender": "GENDER_UNSPECIFIED"
},
"email": {
"email": "string",
"isEmailVerified": true
},
"phone": {
"phone": "string",
"isPhoneVerified": true
},
"initialPassword": "string"
}'
java / OkHttp
curl -L -X POST 'https://$CUSTOM-DOMAIN/management/v1/users/human' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"userName": "string",
"profile": {
"firstName": "string",
"lastName": "string",
"nickName": "string",
"displayName": "string",
"preferredLanguage": "string",
"gender": "GENDER_UNSPECIFIED"
},
"email": {
"email": "string",
"isEmailVerified": true
},
"phone": {
"phone": "string",
"isPhoneVerified": true
},
"initialPassword": "string"
}'
powershell / RestMethod
curl -L -X POST 'https://$CUSTOM-DOMAIN/management/v1/users/human' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"userName": "string",
"profile": {
"firstName": "string",
"lastName": "string",
"nickName": "string",
"displayName": "string",
"preferredLanguage": "string",
"gender": "GENDER_UNSPECIFIED"
},
"email": {
"email": "string",
"isEmailVerified": true
},
"phone": {
"phone": "string",
"isPhoneVerified": true
},
"initialPassword": "string"
}'