Docs/User API/Organizations/Assign member seat

Assign seat to member

Preview
POST/user/v1/organizations/{organizationId}/members/{userId}:assignSeat

Assign a seat to an organization member.

This will automatically purchase additional seats if none are available and the plan has just-in-time seat provisioning enabled.

path parameters

  • organizationId

    string

    Required

    The identifier of the organization.

  • userId

    string

    Required

    The identifier of the user.

Returns

  • user

    User

    The user.

  • role

    Role

    The user's role within the organization.

  • seat

    AccountSubscriptionSeat

    The seat assigned to the member.

    This will be absent if there is no active subscription for the organization or the user has not been assigned a seat.

curl https://api.userhub.com/user/v1/organizations/org_28seyVGVL1got6/members/usr_MKFxzgJaAH8JQ4:assignSeat \
  -H "UserHub-Api-Key: $USERHUB_USER_KEY" \
  -H "Authorization: Bearer $USER_ACCESS_TOKEN" \
  -X POST
Response bodyJSON
{
  "user": {
    "id": "usr_MKFxzgJaAH8JQ4",
    "displayName": "Jane Doe",
    "email": "[email protected]",
    "emailVerified": true,
    "imageUrl": "https://example.com/jane.jpg"
  },
  "role": {
    "id": "role_4NNSzkhn",
    "uniqueId": "owner",
    "displayName": "Owner",
    "type": "OWNER",
    "seatPolicy": "DEFAULT",
    "permissionSets": [],
    "default": false
  },
  "seat": {
    "product": {
      "id": "pd_3fNK5BXs9C1Fdc",
      "uniqueId": "pro-seat",
      "displayName": "Pro seat"
    }
  }
}
PreviousUpdate a member
NextUnassign seat from member

Build software thatmonetizes
$

Subscribe to monthly product updates

© 2025 UserHub

Integrations

    UserHub & Auth0UserHub & Stripe BillingUserHub & Google CloudUserHub & FirebaseUserHub & custom auth