mitodl / open-discussions

BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

Update keycloak migration script to populate the user's name from `Profile` #4324

Closed rhysyngsun closed 2 months ago

rhysyngsun commented 2 months ago

What are the relevant tickets?

Fixes #4258

What's this PR do?

This switches the user migration command to use Profile.name instead of the fields on User. It attempts to split the name on the first whitespace, if it can't, then it defaults to empty strings (the current behavior). In the latter case the user will be prompted to fill these in on their first login to keycloak.

How should this be manually tested?

Run the script against your keycloak instance.