chore: add warning display on user or group removal (#21624)

resolve coder/internal#1274

Warn the user that a workspace restart is needed to complete the user or
group removal

<img width="606" height="350" alt="Screenshot 2026-01-22 at 13 59 30"
src="https://github.com/user-attachments/assets/4e4af209-9714-46ef-b126-0a084c6e6d38"
/>
This commit is contained in:
Jaayden Halko
2026-01-23 04:26:55 +00:00
committed by GitHub
parent 6c49938fca
commit 6a81474ff0
6 changed files with 29 additions and 0 deletions
+4
View File
@@ -40,6 +40,9 @@ To remove sharing from a workspace:
- `coder sharing remove <workspace> --group contractor`
- Workspace is no longer shared with the group `contractor`.
> [!Important]
> The workspace must be restarted for the user or group removal to take effect.
To show who a workspace is shared with:
- `coder sharing show <workspace>`
@@ -61,3 +64,4 @@ To list shared workspaces:
- `use` allows for connection via SSH and apps, the ability to start and stop the workspace, view logs and stats, and update on start when required.
- `admin` allows for all of the above, as well as the ability to rename the workspace, update at any time, and invite others with the `use` role.
- Neither role allows for the user to delete the workspace.
- After removing a user/group, a workspace restart is required for the removal to take effect.