NZTA\OktaAPI\Jobs\SyncOktaUsersJob::process
Use the {@link OktaService} to get the full list of users from the Okta API.
We then compare the users from Okta to the records stored in the DB and use it determine which users need to be created, updated or removed. We split out the users into their own arrays to make it easy to create a single SQL call for each (as we are processing a large amount of users and want to prevent a separate DB call for each user). We finish up by rescheduling this job and marking as complete so it can be removed from the queue and create new Job to mapping okta manager ID to SilverStripe ManagerID
Signature
public function process()
Returns
- void