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