List group members
List group members
Returns a paginated list of the group's members. Use cursor pagination via after/before. Pass expand[]=user to embed each member's full user record and expand[]=total_count to include the matching row count. Pass query[] (repeatable, 1-255 chars) to search members by their user's email or federated credential subject (substring match, OR'd across repeated values). Pass filter[id] (repeatable, max 100) to restrict results to a known set of members by user ID — mutually exclusive with after/before (returns 400 if combined). When filter[id] is set, limit is ignored and the response contains every requested member that exists in the group, in a single page. IDs not in the group are silently omitted.
Path Parameters
Query Parameters
Cursor for forward pagination
Cursor for backward pagination
Maximum number of items to return
Returns
List group members
curl https://api.keycard.ai/zones/$ZONE_ID/groups/$GROUP_ID/members \
-H "Authorization: Bearer $KEYCARD_API_API_KEY"{
"items": [
{
"created_at": "2019-12-27T18:11:19.117Z",
"user_id": "user_id",
"user": {
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"email": "dev@stainless.com",
"email_verified": true,
"identifier": "identifier",
"organization_id": "organization_id",
"status": "active",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"authenticated_at": "authenticated_at",
"credentials": [
{
"created_at": "2019-12-27T18:11:19.117Z",
"provider_id": "provider_id",
"type": "federation",
"updated_at": "2019-12-27T18:11:19.117Z",
"issuer": "issuer",
"provider": {
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"identifier": "x",
"name": "x",
"organization_id": "organization_id",
"owner_type": "platform",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"client_id": "client_id",
"client_secret_set": true,
"description": "description",
"metadata": {
"icon_url": "https://example.com"
},
"protocols": {
"oauth2": {
"issuer": "https://example.com",
"authorization_endpoint": "https://example.com",
"authorization_parameters": {
"foo": "string"
},
"authorization_resource_enabled": true,
"authorization_resource_parameter": "authorization_resource_parameter",
"code_challenge_methods_supported": [
"string"
],
"jwks_uri": "https://example.com",
"registration_endpoint": "https://example.com",
"scope_parameter": "scope_parameter",
"scope_separator": "scope_separator",
"scopes_supported": [
"string"
],
"token_endpoint": "https://example.com",
"token_response_access_token_pointer": "token_response_access_token_pointer"
},
"openid": {
"external_id_claim": "external_id_claim",
"scopes": [
"string"
],
"single_logout_enabled": true,
"user_identifier_claim": "user_identifier_claim",
"userinfo_endpoint": "https://example.com"
}
},
"type": "external"
},
"subject": "subject"
}
],
"grant_count": 0,
"groups": [
{
"id": "id",
"identifier": "identifier",
"name": "name"
}
],
"issuer": "issuer",
"provider_id": "provider_id",
"role_assignments": [
{
"role_id": "role_id",
"role_identifier": "role_identifier",
"role_owner_type": "platform",
"scope": {
"id": "id",
"type": "type"
},
"source": "user",
"group_id": "group_id"
}
],
"session_count": 0,
"subject": "subject"
}
}
],
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}Returns Examples
{
"items": [
{
"created_at": "2019-12-27T18:11:19.117Z",
"user_id": "user_id",
"user": {
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"email": "dev@stainless.com",
"email_verified": true,
"identifier": "identifier",
"organization_id": "organization_id",
"status": "active",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"authenticated_at": "authenticated_at",
"credentials": [
{
"created_at": "2019-12-27T18:11:19.117Z",
"provider_id": "provider_id",
"type": "federation",
"updated_at": "2019-12-27T18:11:19.117Z",
"issuer": "issuer",
"provider": {
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"identifier": "x",
"name": "x",
"organization_id": "organization_id",
"owner_type": "platform",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"client_id": "client_id",
"client_secret_set": true,
"description": "description",
"metadata": {
"icon_url": "https://example.com"
},
"protocols": {
"oauth2": {
"issuer": "https://example.com",
"authorization_endpoint": "https://example.com",
"authorization_parameters": {
"foo": "string"
},
"authorization_resource_enabled": true,
"authorization_resource_parameter": "authorization_resource_parameter",
"code_challenge_methods_supported": [
"string"
],
"jwks_uri": "https://example.com",
"registration_endpoint": "https://example.com",
"scope_parameter": "scope_parameter",
"scope_separator": "scope_separator",
"scopes_supported": [
"string"
],
"token_endpoint": "https://example.com",
"token_response_access_token_pointer": "token_response_access_token_pointer"
},
"openid": {
"external_id_claim": "external_id_claim",
"scopes": [
"string"
],
"single_logout_enabled": true,
"user_identifier_claim": "user_identifier_claim",
"userinfo_endpoint": "https://example.com"
}
},
"type": "external"
},
"subject": "subject"
}
],
"grant_count": 0,
"groups": [
{
"id": "id",
"identifier": "identifier",
"name": "name"
}
],
"issuer": "issuer",
"provider_id": "provider_id",
"role_assignments": [
{
"role_id": "role_id",
"role_identifier": "role_identifier",
"role_owner_type": "platform",
"scope": {
"id": "id",
"type": "type"
},
"source": "user",
"group_id": "group_id"
}
],
"session_count": 0,
"subject": "subject"
}
}
],
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}