Fix 500 errors when creating a user with identity via API
Addressing https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7625#note_20835543 (only PUT /users
was addressed because a spec was missing for POST /users
.
-
Add a failing spec to the POST /users API -
Fix the failure
Closes #26295 (closed).