The MyAccount Profile API provides operations to enroll and update profile fields. The API also allows viewing of all allowed profile fields.
A valid API version in the Accept
header is required to access the API. Current version: 1.0.0
Accept: application/json; okta-version=1.0.0
okta.myAccount.profile.read
Retrieves the caller's Okta user profile, without attributes excluded by the Get my user profile schema
Example response
Unauthorized
{- "createdAt": "2020-01-14T20:05:32.000Z",
- "modifiedAt": "2020-01-14T20:05:32.000Z",
- "profile": {
- "customBoolean": false,
- "foo": "bar",
- "login": "example@ex.ample.com",
- "mobilePhone": "+1(555)555-5555",
- "customInteger": 42
}, - "_links": {
}
}
okta.myAccount.profile.manage
Replaces the caller's user profile
Note: This API differs from the the existing Users API in that only the PUT operation is supported. Partial updates (PATCH requests) aren't available. All values returned by fetching a user profile must pass to the MyAccount API, or the update doesn't pass validation. This applies even if the omitted schema property is optional. To ensure an optional property passes, enter a value of 'null'.
OK
Bad Request
Unauthorized
{- "profile": {
- "customBoolean": true,
- "foo": "bar",
- "login": "example@ex.ample.com",
- "mobilePhone": "555-555-5555",
- "customInteger": 42
}
}
{- "createdAt": "2020-01-14T20:05:32.000Z",
- "modifiedAt": "2020-01-14T20:05:32.000Z",
- "profile": {
- "customBoolean": true,
- "foo": "bar",
- "login": "example@ex.ample.com",
- "mobilePhone": "555-555-5555",
- "customInteger": 42
}, - "_links": {
}
}
{- "properties": {
- "customBoolean": {
- "permissions": {
- "SELF": "READ_WRITE"
}, - "title": "customBoolean",
- "type": "boolean"
}, - "foo": {
- "permissions": {
- "SELF": "READ_ONLY"
}, - "title": "foo",
- "type": "string"
}, - "login": {
- "maxLength": 100,
- "minLength": 5,
- "permissions": {
- "SELF": "READ_ONLY"
}, - "required": true,
- "title": "Username",
- "type": "string"
}, - "mobilePhone": {
- "maxLength": 100,
- "permissions": {
- "SELF": "READ_WRITE"
}, - "title": "Mobile phone",
- "type": "string"
}, - "customInteger": {
- "permissions": {
- "SELF": "READ_WRITE"
}, - "title": "customInteger",
- "type": "integer"
}
}, - "_links": {
}
}