2019-10-03 07:15:24 +00:00
|
|
|
# Managing users
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
{! backend/administration/CLI_tasks/general_cli_task_info.include !}
|
2019-10-03 07:15:24 +00:00
|
|
|
|
|
|
|
## Create a user
|
2019-12-09 01:07:16 +00:00
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
2019-12-09 01:07:16 +00:00
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user new <nickname> <email> [option ...]
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user new <nickname> <email> [option ...]
|
|
|
|
```
|
2019-10-03 07:15:24 +00:00
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
### Options
|
|
|
|
- `--name <name>` - the user's display name
|
|
|
|
- `--bio <bio>` - the user's bio
|
|
|
|
- `--password <password>` - the user's password
|
|
|
|
- `--moderator`/`--no-moderator` - whether the user should be a moderator
|
|
|
|
- `--admin`/`--no-admin` - whether the user should be an admin
|
|
|
|
- `-y`, `--assume-yes`/`--no-assume-yes` - whether to assume yes to all questions
|
|
|
|
|
2019-11-17 20:58:30 +00:00
|
|
|
## List local users
|
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user list
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user list
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Generate an invite link
|
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user invite [option ...]
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user invite [option ...]
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
### Options
|
|
|
|
- `--expires-at DATE` - last day on which token is active (e.g. "2019-04-05")
|
|
|
|
- `--max-use NUMBER` - maximum numbers of token uses
|
|
|
|
|
|
|
|
## List generated invites
|
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user invites
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user invites
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Revoke invite
|
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user revoke_invite <token>
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user revoke_invite <token>
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Delete a user
|
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user rm <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user rm <nickname>
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Delete user's posts and interactions
|
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user delete_activities <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user delete_activities <nickname>
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Sign user out from all applications (delete user's OAuth tokens and authorizations)
|
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user sign_out <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user sign_out <nickname>
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
|
2020-05-21 05:06:57 +00:00
|
|
|
## Deactivate a user and unsubscribes local users from the user
|
2019-10-03 07:15:24 +00:00
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user deactivate NICKNAME
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user deactivate NICKNAME
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
|
2020-05-21 05:06:57 +00:00
|
|
|
## Deactivate all accounts from an instance and unsubscribe local users on it
|
2019-10-03 07:15:24 +00:00
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user deactivate_all_from_instance <instance>
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user deactivate_all_from_instance <instance>
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Create a password reset link for user
|
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user reset_password <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user reset_password <nickname>
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
|
2020-06-11 20:54:39 +00:00
|
|
|
## Disable Multi Factor Authentication (MFA/2FA) for a user
|
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user reset_mfa <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user reset_mfa <nickname>
|
|
|
|
```
|
2020-06-11 20:54:39 +00:00
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Set the value of the given user's settings
|
2019-12-09 01:07:16 +00:00
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user set <nickname> [option ...]
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user set <nickname> [option ...]
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
### Options
|
2020-09-08 21:59:53 +00:00
|
|
|
- `--admin`/`--no-admin` - whether the user should be an admin
|
|
|
|
- `--confirmed`/`--no-confirmed` - whether the user account is confirmed
|
|
|
|
- `--locked`/`--no-locked` - whether the user should be locked
|
|
|
|
- `--moderator`/`--no-moderator` - whether the user should be a moderator
|
2019-10-03 07:15:24 +00:00
|
|
|
|
|
|
|
## Add tags to a user
|
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user tag <nickname> <tags>
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user tag <nickname> <tags>
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Delete tags from a user
|
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user untag <nickname> <tags>
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user untag <nickname> <tags>
|
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Toggle confirmation status of the user
|
2019-12-09 01:07:16 +00:00
|
|
|
|
2020-08-15 06:49:12 +00:00
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
2020-10-14 02:52:06 +00:00
|
|
|
./bin/pleroma_ctl user confirm <nickname>
|
2020-08-15 06:49:12 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
2020-10-14 02:52:06 +00:00
|
|
|
mix pleroma.user confirm <nickname>
|
2020-08-15 06:49:12 +00:00
|
|
|
```
|
2020-09-08 21:39:41 +00:00
|
|
|
|
|
|
|
## Set confirmation status for all regular active users
|
|
|
|
*Admins and moderators are excluded*
|
|
|
|
|
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user confirm_all
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user confirm_all
|
|
|
|
```
|
|
|
|
|
|
|
|
## Revoke confirmation status for all regular active users
|
|
|
|
*Admins and moderators are excluded*
|
|
|
|
|
|
|
|
=== "OTP"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./bin/pleroma_ctl user unconfirm_all
|
|
|
|
```
|
|
|
|
|
|
|
|
=== "From Source"
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mix pleroma.user unconfirm_all
|
|
|
|
```
|