Backport: Fix #1784 Edit mode of rest api is broken #1782 User manager is broken