logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

user.md (4763B)


  1. # Managing users
  2. {! backend/administration/CLI_tasks/general_cli_task_info.include !}
  3. ## Create a user
  4. === "OTP"
  5. ```sh
  6. ./bin/pleroma_ctl user new <nickname> <email> [option ...]
  7. ```
  8. === "From Source"
  9. ```sh
  10. mix pleroma.user new <nickname> <email> [option ...]
  11. ```
  12. ### Options
  13. - `--name <name>` - the user's display name
  14. - `--bio <bio>` - the user's bio
  15. - `--password <password>` - the user's password
  16. - `--moderator`/`--no-moderator` - whether the user should be a moderator
  17. - `--admin`/`--no-admin` - whether the user should be an admin
  18. - `-y`, `--assume-yes`/`--no-assume-yes` - whether to assume yes to all questions
  19. ## List local users
  20. === "OTP"
  21. ```sh
  22. ./bin/pleroma_ctl user list
  23. ```
  24. === "From Source"
  25. ```sh
  26. mix pleroma.user list
  27. ```
  28. ## Generate an invite link
  29. === "OTP"
  30. ```sh
  31. ./bin/pleroma_ctl user invite [option ...]
  32. ```
  33. === "From Source"
  34. ```sh
  35. mix pleroma.user invite [option ...]
  36. ```
  37. ### Options
  38. - `--expires-at DATE` - last day on which token is active (e.g. "2019-04-05")
  39. - `--max-use NUMBER` - maximum numbers of token uses
  40. ## List generated invites
  41. === "OTP"
  42. ```sh
  43. ./bin/pleroma_ctl user invites
  44. ```
  45. === "From Source"
  46. ```sh
  47. mix pleroma.user invites
  48. ```
  49. ## Revoke invite
  50. === "OTP"
  51. ```sh
  52. ./bin/pleroma_ctl user revoke_invite <token>
  53. ```
  54. === "From Source"
  55. ```sh
  56. mix pleroma.user revoke_invite <token>
  57. ```
  58. ## Delete a user
  59. === "OTP"
  60. ```sh
  61. ./bin/pleroma_ctl user rm <nickname>
  62. ```
  63. === "From Source"
  64. ```sh
  65. mix pleroma.user rm <nickname>
  66. ```
  67. ## Delete user's posts and interactions
  68. === "OTP"
  69. ```sh
  70. ./bin/pleroma_ctl user delete_activities <nickname>
  71. ```
  72. === "From Source"
  73. ```sh
  74. mix pleroma.user delete_activities <nickname>
  75. ```
  76. ## Sign user out from all applications (delete user's OAuth tokens and authorizations)
  77. === "OTP"
  78. ```sh
  79. ./bin/pleroma_ctl user sign_out <nickname>
  80. ```
  81. === "From Source"
  82. ```sh
  83. mix pleroma.user sign_out <nickname>
  84. ```
  85. ## Activate a user
  86. === "OTP"
  87. ```sh
  88. ./bin/pleroma_ctl user activate NICKNAME
  89. ```
  90. === "From Source"
  91. ```sh
  92. mix pleroma.user activate NICKNAME
  93. ```
  94. ## Deactivate a user and unsubscribes local users from the user
  95. === "OTP"
  96. ```sh
  97. ./bin/pleroma_ctl user deactivate NICKNAME
  98. ```
  99. === "From Source"
  100. ```sh
  101. mix pleroma.user deactivate NICKNAME
  102. ```
  103. ## Deactivate all accounts from an instance and unsubscribe local users on it
  104. === "OTP"
  105. ```sh
  106. ./bin/pleroma_ctl user deactivate_all_from_instance <instance>
  107. ```
  108. === "From Source"
  109. ```sh
  110. mix pleroma.user deactivate_all_from_instance <instance>
  111. ```
  112. ## Create a password reset link for user
  113. === "OTP"
  114. ```sh
  115. ./bin/pleroma_ctl user reset_password <nickname>
  116. ```
  117. === "From Source"
  118. ```sh
  119. mix pleroma.user reset_password <nickname>
  120. ```
  121. ## Disable Multi Factor Authentication (MFA/2FA) for a user
  122. === "OTP"
  123. ```sh
  124. ./bin/pleroma_ctl user reset_mfa <nickname>
  125. ```
  126. === "From Source"
  127. ```sh
  128. mix pleroma.user reset_mfa <nickname>
  129. ```
  130. ## Set the value of the given user's settings
  131. === "OTP"
  132. ```sh
  133. ./bin/pleroma_ctl user set <nickname> [option ...]
  134. ```
  135. === "From Source"
  136. ```sh
  137. mix pleroma.user set <nickname> [option ...]
  138. ```
  139. ### Options
  140. - `--admin`/`--no-admin` - whether the user should be an admin
  141. - `--confirmed`/`--no-confirmed` - whether the user account is confirmed
  142. - `--locked`/`--no-locked` - whether the user should be locked
  143. - `--moderator`/`--no-moderator` - whether the user should be a moderator
  144. ## Add tags to a user
  145. === "OTP"
  146. ```sh
  147. ./bin/pleroma_ctl user tag <nickname> <tags>
  148. ```
  149. === "From Source"
  150. ```sh
  151. mix pleroma.user tag <nickname> <tags>
  152. ```
  153. ## Delete tags from a user
  154. === "OTP"
  155. ```sh
  156. ./bin/pleroma_ctl user untag <nickname> <tags>
  157. ```
  158. === "From Source"
  159. ```sh
  160. mix pleroma.user untag <nickname> <tags>
  161. ```
  162. ## Toggle confirmation status of the user
  163. === "OTP"
  164. ```sh
  165. ./bin/pleroma_ctl user confirm <nickname>
  166. ```
  167. === "From Source"
  168. ```sh
  169. mix pleroma.user confirm <nickname>
  170. ```
  171. ## Set confirmation status for all regular active users
  172. *Admins and moderators are excluded*
  173. === "OTP"
  174. ```sh
  175. ./bin/pleroma_ctl user confirm_all
  176. ```
  177. === "From Source"
  178. ```sh
  179. mix pleroma.user confirm_all
  180. ```
  181. ## Revoke confirmation status for all regular active users
  182. *Admins and moderators are excluded*
  183. === "OTP"
  184. ```sh
  185. ./bin/pleroma_ctl user unconfirm_all
  186. ```
  187. === "From Source"
  188. ```sh
  189. mix pleroma.user unconfirm_all
  190. ```