Skip to content

List all realm assignment operations

Request

OAuth 2.0 scope:
  • okta.realmAssignments.read

Lists all realm assignment operations. The upper limit is 200 and operations are sorted in descending order from most recent to oldest by ID.

Query
limitinteger, [ 1 .. 200 ]

A limit on the number of objects to return

Default:20
afterstring

The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the Link response header. See Pagination and Link header.

curl -i -X GET \
  'https://subdomain.okta.com/api/v1/realm-assignments/operations?limit=20&after=string'

Responses

OK

Bodyapplication/json
Array [
completedstring, (date-time)

Timestamp of when the operation completed

createdstring, (date-time)required

Timestamp of when the operation was created

idstringrequired

ID of the asynchronous operation

startedstring, (date-time)

Timestamp of when the operation started

statusstringrequired

The status of the asynchronous operation

Enum:"COMPLETED""SCHEDULED""IN_PROGRESS""FAILED"
typestringrequired

The operation type

assignmentOperationobject

Definition of the realm assignment operation

numUserMovednumberread-only

Number of users moved

realmIdstringread-only

ID of the realm

realmNamestringread-only

Name of the realm

]
Response
[ { "id": "rre4mje4ez6B2a7B60g7", "type": "realm:assignment", "status": "COMPLETED", "created": "2023-10-25T21:02:54.000Z", "started": "2023-10-25T21:02:54.000Z", "completed": "2023-10-25T21:02:54.000Z", "realmId": "00g1b7rvh0xPLKXFf0g5", "realmName": "Realm Name", "assignmentOperation": { … }, "numUserMoved": 50, "_links": { … } }, { "id": "rre4mje4ez7B2a7B60g7", "type": "realm:assignment", "status": "COMPLETED", "created": "2023-10-25T21:02:54.000Z", "started": "2023-10-25T21:02:54.000Z", "completed": "2023-10-25T21:02:54.000Z", "assignmentOperation": { … }, "numUserMoved": 50, "_links": { … } } ]