Search user schemas
POST/resources/v3alpha/user_schemas/_search
Search all matching user schemas. By default, we will return all user schema of your instance. Make sure to include a limit and sorting for pagination.
Request​
Query Parameters
Maximum amount of events returned. If not configured otherwise, the default is 100, the maximum is 1000. If the limit exceeds the maximum, ZITADEL throws an error.
default is ascending, because together with the creation date sorting column, this returns the most deterministic pagination results.
Possible values: [FIELD_NAME_UNSPECIFIED
, FIELD_NAME_TYPE
, FIELD_NAME_STATE
, FIELD_NAME_REVISION
, FIELD_NAME_CHANGE_DATE
, FIELD_NAME_CREATION_DATE
]
Default value: FIELD_NAME_UNSPECIFIED
The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent.
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
Define the criteria to filter for.
Array [
Array [
]
Array [
]
]
orFilter
object
Union the results of each sub filter ('OR').
queries
object[]
andFilter
object
Limit the result to match all sub queries ('AND'). Note that if you specify multiple queries, they will be implicitly used as andQueries. Use the andFilter in combination with orFilter and notFilter.
queries
object[]
notFilter
object
Exclude / Negate the result of the sub filter ('NOT').
filter
object
typeFilter
object
Limit the result to a specific schema type.
Possible values: <= 200 characters
Defines which type to filter for.
Possible values: [TEXT_FILTER_METHOD_EQUALS
, TEXT_FILTER_METHOD_EQUALS_IGNORE_CASE
, TEXT_FILTER_METHOD_STARTS_WITH
, TEXT_FILTER_METHOD_STARTS_WITH_IGNORE_CASE
, TEXT_FILTER_METHOD_CONTAINS
]
Default value: TEXT_FILTER_METHOD_EQUALS
Defines which text comparison method used for the type filter.
stateFilter
object
Limit the result to a specific state of the schema.
Possible values: [STATE_UNSPECIFIED
, STATE_ACTIVE
, STATE_INACTIVE
]
Default value: STATE_UNSPECIFIED
Defines the state to filter for.
idFilter
object
Limit the result to a specific schema ID.
Possible values: non-empty
and <= 200 characters
Defines the ID of the user schema to filter for.
Possible values: [TEXT_FILTER_METHOD_EQUALS
, TEXT_FILTER_METHOD_EQUALS_IGNORE_CASE
, TEXT_FILTER_METHOD_STARTS_WITH
, TEXT_FILTER_METHOD_STARTS_WITH_IGNORE_CASE
, TEXT_FILTER_METHOD_CONTAINS
]
Default value: TEXT_FILTER_METHOD_EQUALS
Defines which text comparison method used for the id filter.
Body
required
Define the criteria to filter for.
Array [
Array [
]
Array [
]
]
orFilter
object
Union the results of each sub filter ('OR').
queries
object[]
andFilter
object
Limit the result to match all sub queries ('AND'). Note that if you specify multiple queries, they will be implicitly used as andQueries. Use the andFilter in combination with orFilter and notFilter.
queries
object[]
notFilter
object
Exclude / Negate the result of the sub filter ('NOT').
filter
object
typeFilter
object
Limit the result to a specific schema type.
Possible values: <= 200 characters
Defines which type to filter for.
Possible values: [TEXT_FILTER_METHOD_EQUALS
, TEXT_FILTER_METHOD_EQUALS_IGNORE_CASE
, TEXT_FILTER_METHOD_STARTS_WITH
, TEXT_FILTER_METHOD_STARTS_WITH_IGNORE_CASE
, TEXT_FILTER_METHOD_CONTAINS
]
Default value: TEXT_FILTER_METHOD_EQUALS
Defines which text comparison method used for the type filter.
stateFilter
object
Limit the result to a specific state of the schema.
Possible values: [STATE_UNSPECIFIED
, STATE_ACTIVE
, STATE_INACTIVE
]
Default value: STATE_UNSPECIFIED
Defines the state to filter for.
idFilter
object
Limit the result to a specific schema ID.
Possible values: non-empty
and <= 200 characters
Defines the ID of the user schema to filter for.
Possible values: [TEXT_FILTER_METHOD_EQUALS
, TEXT_FILTER_METHOD_EQUALS_IGNORE_CASE
, TEXT_FILTER_METHOD_STARTS_WITH
, TEXT_FILTER_METHOD_STARTS_WITH_IGNORE_CASE
, TEXT_FILTER_METHOD_CONTAINS
]
Default value: TEXT_FILTER_METHOD_EQUALS
Defines which text comparison method used for the id filter.
Body
required
Define the criteria to filter for.
Array [
Array [
]
Array [
]
]
orFilter
object
Union the results of each sub filter ('OR').
queries
object[]
andFilter
object
Limit the result to match all sub queries ('AND'). Note that if you specify multiple queries, they will be implicitly used as andQueries. Use the andFilter in combination with orFilter and notFilter.
queries
object[]
notFilter
object
Exclude / Negate the result of the sub filter ('NOT').
filter
object
typeFilter
object
Limit the result to a specific schema type.
Possible values: <= 200 characters
Defines which type to filter for.
Possible values: [TEXT_FILTER_METHOD_EQUALS
, TEXT_FILTER_METHOD_EQUALS_IGNORE_CASE
, TEXT_FILTER_METHOD_STARTS_WITH
, TEXT_FILTER_METHOD_STARTS_WITH_IGNORE_CASE
, TEXT_FILTER_METHOD_CONTAINS
]
Default value: TEXT_FILTER_METHOD_EQUALS
Defines which text comparison method used for the type filter.
stateFilter
object
Limit the result to a specific state of the schema.
Possible values: [STATE_UNSPECIFIED
, STATE_ACTIVE
, STATE_INACTIVE
]
Default value: STATE_UNSPECIFIED
Defines the state to filter for.
idFilter
object
Limit the result to a specific schema ID.
Possible values: non-empty
and <= 200 characters
Defines the ID of the user schema to filter for.
Possible values: [TEXT_FILTER_METHOD_EQUALS
, TEXT_FILTER_METHOD_EQUALS_IGNORE_CASE
, TEXT_FILTER_METHOD_STARTS_WITH
, TEXT_FILTER_METHOD_STARTS_WITH_IGNORE_CASE
, TEXT_FILTER_METHOD_CONTAINS
]
Default value: TEXT_FILTER_METHOD_EQUALS
Defines which text comparison method used for the id filter.
Responses​
- 200
- 400
- 403
- 404
- default
A list of all user schema matching the search
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object
Details provides information about the returned result including total amount found.
the last time the projection got updated
Possible values: [FIELD_NAME_UNSPECIFIED
, FIELD_NAME_TYPE
, FIELD_NAME_STATE
, FIELD_NAME_REVISION
, FIELD_NAME_CHANGE_DATE
, FIELD_NAME_CREATION_DATE
]
Default value: FIELD_NAME_UNSPECIFIED
States by which field the results are sorted.
result
object[]
The result contains the user schemas, which matched the queries.
details
object
Details provide some base information (such as the last change date) of the schema.
the timestamp of the first event applied to the object.
the timestamp of the last event applied to the object.
owner
object
the parent object representing the returned objects context.
Possible values: [OWNER_TYPE_UNSPECIFIED
, OWNER_TYPE_SYSTEM
, OWNER_TYPE_INSTANCE
, OWNER_TYPE_ORG
]
Default value: OWNER_TYPE_UNSPECIFIED
config
object
Possible values: non-empty
and <= 200 characters
Type is a human readable word describing the schema.
JSON schema representation defining the user.
Possible values: [AUTHENTICATOR_TYPE_UNSPECIFIED
, AUTHENTICATOR_TYPE_USERNAME
, AUTHENTICATOR_TYPE_PASSWORD
, AUTHENTICATOR_TYPE_WEBAUTHN
, AUTHENTICATOR_TYPE_TOTP
, AUTHENTICATOR_TYPE_OTP_EMAIL
, AUTHENTICATOR_TYPE_OTP_SMS
, AUTHENTICATOR_TYPE_AUTHENTICATION_KEY
, AUTHENTICATOR_TYPE_IDENTITY_PROVIDER
]
Defines the possible types of authenticators.
Possible values: [STATE_UNSPECIFIED
, STATE_ACTIVE
, STATE_INACTIVE
]
Default value: STATE_UNSPECIFIED
Current state of the schema.
Revision is a read only version of the schema, each update of the schema
-field increases the revision.
{
"details": {
"appliedLimit": 100,
"totalResult": "2",
"timestamp": "2024-12-20T16:04:44.399Z"
},
"sortingColumn": "FIELD_NAME_UNSPECIFIED",
"result": [
{
"details": {
"id": "69629012906488334",
"created": "2024-12-20T16:04:44.399Z",
"changed": "2024-12-20T16:04:44.399Z",
"owner": "69629023906488334"
},
"config": {
"type": "employees",
"schema": {
"$schema": "https://example.com/user/employees",
"type": "object",
"properties": {
"name": {
"type": "string",
"required": true
},
"description": {
"type": "string"
}
}
},
"possibleAuthenticators": [
"AUTHENTICATOR_TYPE_USERNAME",
"AUTHENTICATOR_TYPE_PASSWORD",
"AUTHENTICATOR_TYPE_WEBAUTHN"
]
},
"state": "STATE_ACTIVE",
"revision": "2"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object
Details provides information about the returned result including total amount found.
the last time the projection got updated
Possible values: [FIELD_NAME_UNSPECIFIED
, FIELD_NAME_TYPE
, FIELD_NAME_STATE
, FIELD_NAME_REVISION
, FIELD_NAME_CHANGE_DATE
, FIELD_NAME_CREATION_DATE
]
Default value: FIELD_NAME_UNSPECIFIED
States by which field the results are sorted.
result
object[]
The result contains the user schemas, which matched the queries.
details
object
Details provide some base information (such as the last change date) of the schema.
the timestamp of the first event applied to the object.
the timestamp of the last event applied to the object.
owner
object
the parent object representing the returned objects context.
Possible values: [OWNER_TYPE_UNSPECIFIED
, OWNER_TYPE_SYSTEM
, OWNER_TYPE_INSTANCE
, OWNER_TYPE_ORG
]
Default value: OWNER_TYPE_UNSPECIFIED
config
object
Possible values: non-empty
and <= 200 characters
Type is a human readable word describing the schema.
JSON schema representation defining the user.
Possible values: [AUTHENTICATOR_TYPE_UNSPECIFIED
, AUTHENTICATOR_TYPE_USERNAME
, AUTHENTICATOR_TYPE_PASSWORD
, AUTHENTICATOR_TYPE_WEBAUTHN
, AUTHENTICATOR_TYPE_TOTP
, AUTHENTICATOR_TYPE_OTP_EMAIL
, AUTHENTICATOR_TYPE_OTP_SMS
, AUTHENTICATOR_TYPE_AUTHENTICATION_KEY
, AUTHENTICATOR_TYPE_IDENTITY_PROVIDER
]
Defines the possible types of authenticators.
Possible values: [STATE_UNSPECIFIED
, STATE_ACTIVE
, STATE_INACTIVE
]
Default value: STATE_UNSPECIFIED
Current state of the schema.
Revision is a read only version of the schema, each update of the schema
-field increases the revision.
{
"details": {
"appliedLimit": 100,
"totalResult": "2",
"timestamp": "2024-12-20T16:04:44.400Z"
},
"sortingColumn": "FIELD_NAME_UNSPECIFIED",
"result": [
{
"details": {
"id": "69629012906488334",
"created": "2024-12-20T16:04:44.400Z",
"changed": "2024-12-20T16:04:44.400Z",
"owner": "69629023906488334"
},
"config": {
"type": "employees",
"schema": {
"$schema": "https://example.com/user/employees",
"type": "object",
"properties": {
"name": {
"type": "string",
"required": true
},
"description": {
"type": "string"
}
}
},
"possibleAuthenticators": [
"AUTHENTICATOR_TYPE_USERNAME",
"AUTHENTICATOR_TYPE_PASSWORD",
"AUTHENTICATOR_TYPE_WEBAUTHN"
]
},
"state": "STATE_ACTIVE",
"revision": "2"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object
Details provides information about the returned result including total amount found.
the last time the projection got updated
Possible values: [FIELD_NAME_UNSPECIFIED
, FIELD_NAME_TYPE
, FIELD_NAME_STATE
, FIELD_NAME_REVISION
, FIELD_NAME_CHANGE_DATE
, FIELD_NAME_CREATION_DATE
]
Default value: FIELD_NAME_UNSPECIFIED
States by which field the results are sorted.
result
object[]
The result contains the user schemas, which matched the queries.
details
object
Details provide some base information (such as the last change date) of the schema.
the timestamp of the first event applied to the object.
the timestamp of the last event applied to the object.
owner
object
the parent object representing the returned objects context.
Possible values: [OWNER_TYPE_UNSPECIFIED
, OWNER_TYPE_SYSTEM
, OWNER_TYPE_INSTANCE
, OWNER_TYPE_ORG
]
Default value: OWNER_TYPE_UNSPECIFIED
config
object
Possible values: non-empty
and <= 200 characters
Type is a human readable word describing the schema.
JSON schema representation defining the user.
Possible values: [AUTHENTICATOR_TYPE_UNSPECIFIED
, AUTHENTICATOR_TYPE_USERNAME
, AUTHENTICATOR_TYPE_PASSWORD
, AUTHENTICATOR_TYPE_WEBAUTHN
, AUTHENTICATOR_TYPE_TOTP
, AUTHENTICATOR_TYPE_OTP_EMAIL
, AUTHENTICATOR_TYPE_OTP_SMS
, AUTHENTICATOR_TYPE_AUTHENTICATION_KEY
, AUTHENTICATOR_TYPE_IDENTITY_PROVIDER
]
Defines the possible types of authenticators.
Possible values: [STATE_UNSPECIFIED
, STATE_ACTIVE
, STATE_INACTIVE
]
Default value: STATE_UNSPECIFIED
Current state of the schema.
Revision is a read only version of the schema, each update of the schema
-field increases the revision.
{
"details": {
"appliedLimit": 100,
"totalResult": "2",
"timestamp": "2024-12-20T16:04:44.401Z"
},
"sortingColumn": "FIELD_NAME_UNSPECIFIED",
"result": [
{
"details": {
"id": "69629012906488334",
"created": "2024-12-20T16:04:44.401Z",
"changed": "2024-12-20T16:04:44.401Z",
"owner": "69629023906488334"
},
"config": {
"type": "employees",
"schema": {
"$schema": "https://example.com/user/employees",
"type": "object",
"properties": {
"name": {
"type": "string",
"required": true
},
"description": {
"type": "string"
}
}
},
"possibleAuthenticators": [
"AUTHENTICATOR_TYPE_USERNAME",
"AUTHENTICATOR_TYPE_PASSWORD",
"AUTHENTICATOR_TYPE_WEBAUTHN"
]
},
"state": "STATE_ACTIVE",
"revision": "2"
}
]
}
invalid search
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}