GET/admin/v1/organizations/{organizationId}/members/{userId}

Get a member

Retrieves specified organization member.

path parameters

  • organizationId

    string

    Required

    The identifier of the organization.

  • userId

    string

    Required

    The identifier of the user.

Returns

  • state

    enum

    Whether the membership is active.

    Possible values:
    ACTIVEPENDING_DELETION
  • user

    User

    The user.

  • role

    Role

    The user's role within the organization.

  • seat

    AccountSubscriptionSeat

    The seat associated with the member.

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

  • createTime

    date-time

    The creation time of the membership.

  • updateTime

    date-time

    The last update time of the membership.

curl https://api.userhub.com/admin/v1/organizations/org_28seyVGVL1got6/members/usr_MKFxzgJaAH8JQ4 \
  -H "Authorization: Bearer $ADMIN_API_KEY"
Response bodyJSON
{
  "state": "ACTIVE",
  "user": {
    "id": "usr_MKFxzgJaAH8JQ4",
    "state": "ACTIVE",
    "displayName": "Jane Doe",
    "email": "[email protected]",
    "emailVerified": true,
    "phoneNumber": "+12125550123",
    "phoneNumberVerified": false,
    "imageUrl": "https://example.com/jane.jpg",
    "currencyCode": "USD",
    "languageCode": "en",
    "regionCode": "US",
    "timeZone": "America/New_York",
    "address": {
      "lines": [
        "42 West St"
      ],
      "city": "Brooklyn",
      "state": "New York",
      "postalCode": "11222",
      "country": "US"
    },
    "accountConnections": [],
    "subscription": null,
    "memberships": [],
    "signupTime": "2024-06-15T13:00:00Z",
    "createTime": "2024-06-15T13:00:00Z",
    "updateTime": "2024-06-15T13:00:00Z"
  },
  "role": {
    "id": "role_2mD13uXP",
    "uniqueId": "member",
    "displayName": "Member",
    "type": "MEMBER",
    "description": "Can see every member in the organization",
    "permissionSets": [
      "members.invite"
    ],
    "default": true,
    "archived": false,
    "createTime": "2024-06-15T13:00:00Z",
    "updateTime": "2024-06-15T13:00:00Z"
  },
  "seat": null,
  "createTime": "2024-06-15T13:00:00Z",
  "updateTime": "2024-06-15T13:00:00Z"
}
PreviousAdd a member
NextUpdate a member

Turn users intorevenue
$

Subscribe to monthly product updates

© 2024 UserHub

Integrations

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