Users are removed from organisation with no warning if subscription is cancelled #4993
Open
1 of 4 tasks
Labels
bug
Something isn't working
How are you running Flagsmith
Describe the bug
In #2197, we added behaviour for removing all but the first admin user from an organisation if its subscription is cancelled for any reason. This includes accidentally not paying/renewing the subscription and having it be automatically canceled.
This is not a good user experience for several reasons:
Slack discussion here: https://flagsmith.slack.com/archives/CTF0THS2D/p1736773771007339
Steps To Reproduce
On a paid organisation with more than 1 admin user, cancel the subscription. All admins that joined after the first one are removed with no explanation or context.
Expected behavior
Never automatically remove users from organisations without user interaction or consent.
One alternative might be introduce the following behaviour. If the following are true:
is_staff
(this allows support staff to add themselves to free organisations)Then, block access for all users in this organisation to the whole dashboard except the following:
All admins including staff users should be blocked from accessing this org, so that they can see exactly what the customer is seeing in this situation.
A message explaining the situation with suggested action items should be displayed to the user, so they can resolve the situation themselves.
The current blocking mechanism we have is at the organisation level and is more restrictive, since it does not allow access to the Users & Permissions page. The mechanism proposed here should be more lenient to allow users to unblock themselves after they run into this situation.
Screenshots
No response
The text was updated successfully, but these errors were encountered: