User Types

The User Types API provides operations to manage user types.

List all user types
OAuth 2.0: okta.userTypes.read

Lists all user types in your org

Responses
200

Success

403

Forbidden

429

Too Many Requests

get/api/v1/meta/types/user
Request samples
Response samples
application/json
[]

Create a user type
OAuth 2.0: okta.userTypes.manage

Creates a new user type. Okta automatically creates a default user type for your org. You may add up to nine additional user types.

Note: New user types are based on the current default schema template. Modifications to this schema do not automatically propagate to previously created user types.

Request
Request Body schema: application/json
required
name
required
string

The name of the user type. The name must start with A-Z or a-z and contain only A-Z, a-z, 0-9, or underscore (_) characters. This value becomes read-only after creation and can't be updated.

displayName
required
string

The human-readable name of the user type

description
string

The human-readable description of the user type

Responses
200

Success

400

Bad Request

403

Forbidden

429

Too Many Requests

post/api/v1/meta/types/user
Request samples
application/json
{
  • "description": "A new custom user type",
  • "displayName": "New user type",
  • "name": "newUserType"
}
Response samples
application/json
{}

Retrieve a user type
OAuth 2.0: okta.userTypes.read

Retrieves a user type by ID. Use default to fetch the default user type.

Request
path Parameters
typeId
required
string

The unique key for the user type

Responses
200

Success

403

Forbidden

404

Not Found

429

Too Many Requests

get/api/v1/meta/types/user/{typeId}
Request samples
Response samples
application/json
{}

Update a user type
OAuth 2.0: okta.userTypes.manage

Updates an existing user type. This operation is a partial update.

Note: You can only update the displayName and description elements. The name of an existing user type can't be changed.

Request
path Parameters
typeId
required
string

The unique key for the user type

Request Body schema: application/json
required
description
string

The updated human-readable description of the user type

displayName
string

The updated human-readable display name for the user type

Responses
200

Success

400

Bad Request

403

Forbidden

404

Not Found

429

Too Many Requests

post/api/v1/meta/types/user/{typeId}
Request samples
application/json
{
  • "displayName": "Updated Display Name"
}
Response samples
application/json
{}

Replace a user type
OAuth 2.0: okta.userTypes.manage

Replaces an existing user type. This operation is a full update.

Note: The name of an existing user type can't be changed, but must be part of the request body. You can only replace the displayName and description elements.

Request
path Parameters
typeId
required
string

The unique key for the user type

Request Body schema: application/json
name
required
string

The name of the existing type

displayName
required
string

The human-readable name of the user type

description
required
string

The human-readable description of the user type

Responses
200

Success

400

Bad Request

403

Forbidden

404

Not Found

429

Too Many Requests

put/api/v1/meta/types/user/{typeId}
Request samples
application/json
{
  • "displayName": "Replacement Display Name",
  • "description": "Replacement description",
  • "name": "newUserType"
}
Response samples
application/json
{}

Delete a user type
OAuth 2.0: okta.userTypes.manage

Deletes a user type permanently.

Note: You can't delete the default user type or a user type that is currently assigned to users.

Request
path Parameters
typeId
required
string

The unique key for the user type

Responses
204

No Content

403

Forbidden

404

Not Found

429

Too Many Requests

delete/api/v1/meta/types/user/{typeId}
Request samples
Response samples
application/json
{
  • "errorCode": "E0000006",
  • "errorSummary": "You do not have permission to perform the requested action",
  • "errorLink": "E0000006",
  • "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
  • "errorCauses": [ ]
}