Skip to content

Retrieve a user schema

Request

OAuth 2.0 scope:
  • okta.schemas.read
Admin roles:
  • API_ACCESS_MANAGEMENT_ADMIN
  • APP_ADMIN
  • ORG_ADMIN
Permissions:
  • okta.apps.manage

Retrieves the schema for a user type

Path
schemaIdstringrequired

Schema ID. You can also use default to refer to the default user type schema.

curl -i -X GET \
  'https://subdomain.okta.com/api/v1/meta/schemas/user/{schemaId}'

Responses

Success

Bodyapplication/json
$schemastringread-only

JSON schema version identifier

createdstringread-only

Timestamp when the schema was created

definitionsobject(UserSchemaDefinitions)

User profile subschemas

The profile object for a user is defined by a composite schema of base and custom properties using a JSON path to reference subschemas. The #base properties are defined and versioned by Okta, while #custom properties are extensible. Custom property names for the profile object must be unique and can't conflict with a property name defined in the #base subschema.

idstringread-only

URI of user schema

lastUpdatedstringread-only

Timestamp when the schema was last updated

namestringread-only

Name of the schema

propertiesobject(UserSchemaProperties)

User Object Properties

titlestring

User-defined display name for the schema

typestringread-only

Type of root schema

Response
{ "id": "https://{yourOktaDomain}/meta/schemas/user/oscmlha7lcRyMn82P1d7", "$schema": "http://json-schema.org/draft-04/schema#", "name": "user", "title": "An Okta user", "lastUpdated": "2015-09-05T10:40:45.000Z", "created": "2015-02-02T10:27:36.000Z", "definitions": { "base": { … }, "custom": { … } }, "type": "object", "properties": { "profile": { … } } }