Restore deleted user

  • Used Zammad version: 4.1
  • Used Zammad installation type: source
  • Operating system: CentOS 7
  • Browser + version: Chrome 93


We tried to connect the system via SAML.
When logging in, the existing user was then expanded.

It was no longer possible to log in, so we deleted it. The current user comparison is still running via LDAP.

We can now let the user synchronize again,
or ensure that this is automatically created again?
Can the user be “restored” despite having been deleted?

Is there a table that has information about the deleted user?

Many thanks in advance and greetings Olaf


Found my solution:

u = User.find_by(email: ‘’)
u.roles = Role.where(name: [‘Agent’, ‘Admin’])!

Sorry I’m confused how this:

Is supposed to be the solution of this question:

No, you cannot restore a deleted user.
Our documentation states more than clear that all removals are final - restoration via backup would be the only way back.

If the user is part of a ldap sync the user, of course, will return.
You may want to check our documentation that seems to cover your exact questions:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.