User

POST /api/v1/users/{userId}/roles

Assigns a role to a user.

Request

  • Base URL
    https://your-subdomain.okta.com
  • Auth
    API key in header Authorization

Path parameters

userIdstring required

Query parameters

disableNotificationsboolean

Request body

type'SUPER_ADMIN' | 'ORG_ADMIN' | 'APP_ADMIN' | 'USER_ADMIN' | 'HELP_DESK_ADMIN' | 'READ_ONLY_ADMIN' | 'MOBILE_ADMIN' | 'API_ACCESS_MANAGEMENT_ADMIN' | 'REPORT_ADMIN' | 'GROUP_MEMBERSHIP_ADMIN' | 'CUSTOM'

Response

Created

_embeddedobject
_linksobject
assignmentType'GROUP' | 'USER'
createdstring date-time
descriptionstring
idstring
labelstring
lastUpdatedstring date-time
status'ACTIVE' | 'INACTIVE'
type'SUPER_ADMIN' | 'ORG_ADMIN' | 'APP_ADMIN' | 'USER_ADMIN' | 'HELP_DESK_ADMIN' | 'READ_ONLY_ADMIN' | 'MOBILE_ADMIN' | 'API_ACCESS_MANAGEMENT_ADMIN' | 'REPORT_ADMIN' | 'GROUP_MEMBERSHIP_ADMIN' | 'CUSTOM'

Changes

No recorded changes to this operation across all 1 revision of this API.