latestOpenAPI 3.0.02026-08-10221235717.8 KB

e21ad140ec3c

public
Group

Get the groups in an organization a user belongs to.

get/orgs/{orgId}/users/{userId}/groups

Path parameters

orgIdstring required

The Organization ID

userIdstring required

The User or Group Id.

Response

The list of groups in the organization a user belongs to.

idstring required

The id used in Humanitec to identify the group.

group_idstring required

The name of the group in the IdP

idp_idstring required

The IdP id.

created_atstring date-time

The time the user was first registered with Humanitec

Example response

[
  {
    "id": "g-d510224a-4641-48fd-8054-68efd3537ee2",
    "group_id": "my-idp-group",
    "idp_id": "my-idp"
  }
]