backup-utils
backup-utils copied to clipboard
SAML mappings prevent users from logging in on restore.
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.
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).