Organizations

Add User to Organization

Add a user to the organization. This endpoint directly adds the user to the organization and does not create an invitation.

Required Scope: write-users

post/v1/org/{org_id}/users

Request

  • Base URL: https://api.hubble.com
  • URL: https://api.hubble.com/v1/org/{org_id}/users
  • Auth: HTTP bearer

Path parameters

org_idstring uuid required

The ID for an organization

Your organization ID

Headers

Content-Typestring

An indication that the payload is JSON

Request body

emailstring email required

Email address of the user to add

role'admin' | 'member' required

The role a user is assigned within an organization

Example request

{
  "email": "newuser@example.com",
  "role": "member"
}

Response

User added successfully

user_idstring

an id for the user

emailstring email

the user's email address

email_confirmedboolean

whether the user's email has been confirmed

first_namestring

the user's first name

last_namestring

the user's last name

created_atinteger

An UTC second-precision timestamp formatted as an integer

last_active_atinteger

An UTC second-precision timestamp formatted as an integer

role'admin' | 'member'

The role a user is assigned within an organization

Changes

No recorded changes to this operation across all 1 revision of this API.