query · Module: Accounts · Requires accounts:read
Arguments
| Argument | Type | Description |
|---|---|---|
type | String | Filter by type. |
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. |
Returns
IdentityProviderList!
| Field | Type |
|---|---|
data | [IdentityProvider!]! |
has_more | Boolean |
Errors
Errors are returned inerrors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
query IdentityProviders($limit: Int) {
identityProviders(limit: $limit) {
data {
id
object
type
status
livemode
created
updated
account
issuer
client_id
client_secret
scopes
domains {
domain
verified
verification {
type
name
value
}
}
claims {
name
email
groups
}
role_mapping {
group
role
}
default_role
}
has_more
}
}
{
"limit": 10
}
{
"data": {
"identityProviders": {
"data": [
{
"id": "idp_1a2B3c",
"object": "identity_provider",
"type": "oidc",
"status": "pending",
"livemode": true,
"created": 1791302400,
"updated": 1791302400,
"account": "acct_ada",
"issuer": "https://ada.okta.com/oauth2/default",
"client_id": "0oa1b2c3",
"client_secret": "example",
"scopes": [
"example"
],
"domains": [
{
"domain": "example",
"verified": true,
"verification": {
"type": "example",
"name": "Example",
"value": "example"
}
}
],
"claims": {
"name": "Example",
"email": "ops@example.com",
"groups": "example"
},
"role_mapping": [
{
"group": "dock-a",
"role": "example"
}
],
"default_role": "example"
}
],
"has_more": true
}
}
}