In D10206 we're running this in cron, but we also should do that in a migration - this isn't strictly necessary because cron would update it later, but it is better to do that immediately.
Additionally, the function was modified so that the migration / job doesn't fail in environments where we aren't authenticated to Identity service.
Depends on D11051