Customers sometimes intend to remove a list of users from a single site (e.g. via a CSV of usernames) but instead find those users removed from the whole server, including their accounts and memberships on all other sites.
This happens because tabcmd deleteusers is a server-level command. The -s/--server and -t/--site flags on any tabcmd command specify which server to connect to and which site context to authenticate into for that command — they do not change the scope of what deleteusers deletes. deleteusers always removes the named users' accounts from the server, regardless of which site is passed via -t.
Example of the command that causes this:
tabcmd deleteusers "COMM_REMOVE.csv" -s "localhost" -t "SiteH1" --no-certcheck
Even though -t "SiteH1" is specified, this deletes the listed users from the entire server, not just SiteH1.
To remove users from a single site only, use deletesiteusers instead of deleteusers, keeping the same server/site flags:
tabcmd deletesiteusers "COMM_REMOVE.csv" -s "localhost" -t "SiteH1" --no-certcheck
deletesiteusers removes the listed users' membership from the specified site only; their server-level account and any other site memberships remain intact. The -t flag here correctly scopes the operation because deletesiteusers is a site-level command; the CSV file format is unchanged between the two commands.
If users were already fully deleted from the server via deleteusers, there is no built-in undo. They will need to be recreated (tabcmd createusers or createsiteusers) and manually re-added to any relevant sites, groups, and content ownership.
https://help.tableau.com/current/server/en-us/tabcmd_cmd.htm#deletesiteusers
005393492

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.