I've been trying to update user emails and profiles after a sandbox is created and using the SandboxPostCopy interface. However I keep running into the below error:
Update failed. First exception on row 0 with id xxxxxxxxxxxx; first error: MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa):
I know that I have to have a future job to get around this but has anyone successfully managed to not use an asynchronous job?