backup-utils icon indicating copy to clipboard operation
backup-utils copied to clipboard

SAML mappings prevent users from logging in on restore.

Open cvega opened this issue 3 years ago • 1 comments

When restoring from backup successfully users are encountering the following error message:

Another user already owns the account. Please have your administrator check the authentication log.

This can be mitigated with the following details:

gh-console -y
users = User.find_each
user.each{|u| SamlMapping.where(name_id: u.name).destroy_all}

GitHub Expert Services is looking to understand if something in backup-utils would be able to prevent this from occurring.

cvega avatar Mar 01 '22 17:03 cvega

good point! I also wonder, why most settings are kept and not overwritten by the restore process - but this SAML settings are overwritten (and definitely break the environment).

ChristophHoyer avatar Apr 07 '22 13:04 ChristophHoyer