While importing a large batch of new users (50k+) we encountered an issue with mod-user-import task (task restarted due to out of memory)
As a result, we found that several of the new users were created without an associated empty permissions_users record. This results in users in a state where you cannot add permissions on the ui or issue a reset password link.
Attempting to re-import the file does not help. Because the user records are now present, the batch request is handled as an update for these users (updates do not add permissions_users Records)
Need to manually workaround by determining users w/o associated permissions_users records and adding an empty record for each user
Steps to Reproduce:
- Issue a POST request to user-import with a large number of users. Users are imported in batches of 5000 to 14000
The new user records are created in a complete state with associated permissions_users records.
If not possible, should be able to re-import and update user records to include empty permissions_users record
Several records are created w/o associated permissions_users records.