query · Module: Accounts · Requires accounts:read
Arguments
Returns
MembershipList!
Errors
Errors are returned inerrors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
query Memberships($limit: Int) {
memberships(limit: $limit) {
data {
id
object
status
livemode
created
updated
account
identity {
name
issuer
subject
email
}
role
source
last_sign_in_at
}
has_more
}
}
{
"limit": 10
}
{
"data": {
"memberships": {
"data": [
{
"id": "mbr_1a2B3c",
"object": "membership",
"status": "invited",
"livemode": true,
"created": 1791302400,
"updated": 1791302400,
"account": "acct_ada",
"identity": {
"name": "Example",
"issuer": "https://ada.okta.com/oauth2/default",
"subject": "example",
"email": "ops@example.com"
},
"role": "example",
"source": "invitation",
"last_sign_in_at": 1791302400
}
],
"has_more": true
}
}
}
List memberships
query Memberships($limit: Int) {
memberships(limit: $limit) {
data {
id
object
status
livemode
created
updated
account
identity {
name
issuer
subject
email
}
role
source
last_sign_in_at
}
has_more
}
}
{
"limit": 10
}
{
"data": {
"memberships": {
"data": [
{
"id": "mbr_1a2B3c",
"object": "membership",
"status": "invited",
"livemode": true,
"created": 1791302400,
"updated": 1791302400,
"account": "acct_ada",
"identity": {
"name": "Example",
"issuer": "https://ada.okta.com/oauth2/default",
"subject": "example",
"email": "ops@example.com"
},
"role": "example",
"source": "invitation",
"last_sign_in_at": 1791302400
}
],
"has_more": true
}
}
}
query · Module: Accounts · Requires accounts:read
| Argument | Type | Description |
|---|---|---|
role | String | Filter by role. |
status | String | Filter by status. |
createdGte | Int | Filter by created gte. |
createdLte | Int | Filter by created lte. |
limit | Int | Page size, 1–100 (default 10). |
startingAfter | ID | Cursor: return objects after this ID. |
endingBefore | ID | Cursor: return objects before this ID. |
MembershipList!
| Field | Type |
|---|---|
data | [Membership!]! |
has_more | Boolean |
errors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
query Memberships($limit: Int) {
memberships(limit: $limit) {
data {
id
object
status
livemode
created
updated
account
identity {
name
issuer
subject
email
}
role
source
last_sign_in_at
}
has_more
}
}
{
"limit": 10
}
{
"data": {
"memberships": {
"data": [
{
"id": "mbr_1a2B3c",
"object": "membership",
"status": "invited",
"livemode": true,
"created": 1791302400,
"updated": 1791302400,
"account": "acct_ada",
"identity": {
"name": "Example",
"issuer": "https://ada.okta.com/oauth2/default",
"subject": "example",
"email": "ops@example.com"
},
"role": "example",
"source": "invitation",
"last_sign_in_at": 1791302400
}
],
"has_more": true
}
}
}