I think there’s a bug here, but I suspect opinions will vary…
After I delete a user, Contentful retains a record of that user. (Proof: invite the user again, and notice that Contentful resurrects that user’s name.) My guess is that the record is retained so it can be associated with entries, assets, content models, etc touched by that user. This is sensible, and not a bug.
It turns out that a deleted user’s email address is still considered “taken” by Contentful, and can’t be claimed by another user. (Proof: in Contentful’s User Settings page, try to change your email address to that of a deleted user. Contentful says “has already been taken”.) This feels a bit icky.
You can resurrect a deleted user by inviting them again, so the email address is not forever burned up. However, I’ve hit a scenario that I suspect others might also encounter: because I previously invited myself using email addresses ABC and XYZ for testing, there’s no way to change the email address in my “main” Contentful account (the one that’s created entries, etc) from ABC to XYZ.
How to reproduce:
- Sign up to Contentful as user 1 with email address ABC.
- Invite yourself with email address XYZ as user 2 (reason: to test user roles, for example).
- Delete user 2.
- Try and fail to change user 1’s email address from ABC to XYZ.
It’s not the biggest bug in the world, I admit. It hit me because I signed up to Contentful originally with a personal email address for evaluation, made entries, assets, etc, and then invited myself using a corporate email address for role testing. Now there’s no way to tie those entries, assets, etc, to the corporate email address.
Hope that makes sense!