starlight_help/src/content/docs/deactivate-or-reactivate-a-user.mdx
import {Steps, TabItem, Tabs} from "@astrojs/starlight/components";
import FlattenedSteps from "../../components/FlattenedSteps.astro"; import NavigationSteps from "../../components/NavigationSteps.astro"; import ZulipNote from "../../components/ZulipNote.astro"; import ZulipTip from "../../components/ZulipTip.astro"; import AdminOnly from "../include/_AdminOnly.mdx"; import ManageThisUser from "../include/_ManageThisUser.mdx"; import ManageUserTabTip from "../include/_ManageUserTabTip.mdx";
import UserCircleDeactivatedIcon from "~icons/zulip-icon/user-circle-deactivated"; import UserPlusIcon from "~icons/zulip-icon/user-plus"; import UserXIcon from "~icons/zulip-icon/user-x";
When you deactivate a user:
1. Click **Deactivate user** at the bottom of the **Manage user** menu.
1. *(optional)* Select **Notify this user by email?** if desired, and enter a
custom comment to include in the notification email.
1. Choose whether to delete the user's name, profile picture, and messages
they've sent (e.g., their DMs or channel messages).
1. Approve by clicking **Deactivate**.
</FlattenedSteps>
<ManageUserTabTip />
1. In the **Actions** column, click the **deactivate user** (<UserXIcon />)
icon for the user you want to deactivate.
1. *(optional)* Select **Notify this user by email?** if desired, and enter a
custom comment to include in the notification email.
1. Choose whether to delete the user's name, profile picture, and messages
they've sent (e.g., their DMs or channel messages).
1. Approve by clicking **Deactivate**.
</FlattenedSteps>
A reactivated user will have the same role, channel subscriptions, user group memberships, and other settings and permissions as they did prior to deactivation. They will also have the same API key and bot API keys, but their bots will be deactivated until the user manually reactivates them again.
1. Select the **Deactivated** tab.
1. In the **Actions** column, click the **reactivate user** (<UserPlusIcon />) icon for the user you want to reactivate.
</FlattenedSteps>
<ManageUserTabTip />