Manually edit sso fields


(Danny Dulai) #1

Is there a way to manually edit the external id?

post sso-migration, i have users in my system that ended up with bad mappings… i can fix it by hand, but id need to change the external id.

rails console or even modifying postgres tables would be acceptable options.


(Jeff Atwood) #2

Looks like a question for @sam?


(Sam Saffron) #3

You can do it from the rails console, will update with instructions some time tomorrow


(Sam Saffron) #4

This should work

./launcher enter app
rails c
> u = User.find_by_username('sam').single_sign_on_record
> u.external_id = "foo" 
> u.save!