To fix this for workflows the trigger on must be Before User Edit or later client side (Eg. Before User Edit, After Field Edit, After Field Sourcing, etc).
For SuiteScripts this must be set using a client script. Page Init will have it set immediately. All other functions will work as well for client scripts.