mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 21:11:53 +00:00
feat(ui): Add user expulsion from tenants with JWT authentication fix (#10787)
Co-authored-by: Pablo F.G <pablo.fernandez@prowler.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Adrián Peña <adrianjpr@gmail.com>
This commit is contained in:
@@ -140,6 +140,34 @@ Invitations expire after 7 days. If an invitation has expired, contact the organ
|
||||
|
||||
</Note>
|
||||
|
||||
## Expelling a User From an Organization
|
||||
|
||||
Organization owners can expel a member from the organization. Expelling removes the membership immediately, revoking access to all providers, scans, and findings scoped to that organization. Owners expelling themselves are blocked if they are the last remaining owner of the organization.
|
||||
|
||||
To expel a user:
|
||||
|
||||
1. Navigate to the **Users** page.
|
||||
|
||||
2. Locate the user to remove and open the row actions menu.
|
||||
|
||||
3. Select **Expel user**.
|
||||
|
||||
<img src="/images/prowler-app/multi-tenant/expel-user-organization.png" alt="Users table row action menu showing the 'Expel user' destructive option" width="700" />
|
||||
|
||||
|
||||
4. Confirm the action in the dialog. The membership is removed immediately and the expelled user loses access to the organization.
|
||||
|
||||
<img src="/images/prowler-app/multi-tenant/expel-user-organization-modal.png" alt="Confirmation dialog asking to expel the selected user from the current organization" width="700" />
|
||||
|
||||
|
||||
<Warning>
|
||||
Expelling a user revokes any refresh tokens the account holds, but access tokens already issued remain valid until they expire. The default access token lifetime is 30 minutes, so an expelled user may retain access to the organization for up to that window before being fully locked out.
|
||||
</Warning>
|
||||
|
||||
<Warning>
|
||||
If the expelled organization was the user's **only** organization, the account is permanently deleted along with the membership. All personal profile data associated with that account is removed and cannot be recovered. To preserve the account, confirm that the user belongs to another organization before expelling.
|
||||
</Warning>
|
||||
|
||||
## Permissions Reference
|
||||
|
||||
| Action | Required Conditions |
|
||||
@@ -149,3 +177,4 @@ Invitations expire after 7 days. If an invitation has expired, contact the organ
|
||||
| Switch organizations | Any authenticated user |
|
||||
| Edit organization name | Organization owner with **Manage Account** permission |
|
||||
| Delete an organization | Organization owner with **Manage Account** permission; must belong to more than one organization |
|
||||
| Expel a user from an organization | Organization owner (no additional permission required); last remaining owner cannot expel themselves |
|
||||
|
||||
Reference in New Issue
Block a user