New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Admin API to change a username #5515
Comments
The specific SQL update statements can be found at #1445 (comment) We will, of course, want all SQL updates to happen in a single transaction. I'm actually not sure how to accomplish this. I'm interesting in learning because I feel like there are occasions when only some SQL statements are run, leaving "bad data" in the database from partially completed actions. I assume it's some EJB magic? |
The roleAssignments need to be changed.
Without this submitting an invalid username (e.g. 'a') would cause a messy 500 error.
Also unify the two commands to both log the change message as the old user. This is somewhat required for changeIdentifier as there is no other user object to populate the log method, and its not worth creating a new path for this case.
Currently contains two superUser commands
see #5514 for a list of issues for both merge and rename. |
We want to add an admin API that can be used to change an account's username. This would require dealing with the role assignment table and the actionlogrecord, but other connections (like creator id, etc) should be accounted for by foreign keys.
The text was updated successfully, but these errors were encountered: