latestOpenAPI 3.0.02026-08-10221235717.8 KB

e21ad140ec3c

public
UserProfile

Creates a new service user.

post/orgs/{orgId}/users

Path parameters

orgIdstring required

The Organization ID

Request body

emailstring

The email address that should get notifications about this service user. (Optional)

namestring required

The name that should be shown for this service user.

rolestring required

The role that the service user should have on the organization it is created in

Example request

{
  "email": "ci-service-notifications@awesomecorp.com",
  "name": "CI Robot",
  "role": "artefactContributer"
}

Response

The extended user profile of the user.

created_atstring required

The time the user was first registered with Humanitec

emailstring

The email address of the user from the profile

idstring required

The User ID for this user

namestring required

The name the user goes by

typestring required

The type of the account. Could be user, service or system

Example response

{
  "created_at": "2020-12-19T09:32:46Z",
  "email": "jo.trigg@awesomecorp.com",
  "id": "d510224a-4641-48fd-8054-68efd3537ee2",
  "name": "Jo Trigg",
  "type": "user"
}