diff --git a/TopicUserMappingContrib/data/System/RemoveUser.txt b/TopicUserMappingContrib/data/System/RemoveUser.txt new file mode 100644 index 0000000000..3b475ec6f7 --- /dev/null +++ b/TopicUserMappingContrib/data/System/RemoveUser.txt @@ -0,0 +1,60 @@ +%META:TOPICINFO{author="ProjectContributor" date="1482953205" format="1.1" version="1"}% +%META:TOPICPARENT{name="AdminToolsCategory"}% +---+ %MAKETEXT{"Remove User"}% + +Utility for removing registered users, when supported by the User Mapper. +%STARTINCLUDE% +The following form can be used by administrators to delete a user's account: + * The user is removed from the user database. + * The user's topic is moved to the trash web. + * The user is removed from any groups. + * Other topics like the users !LeftBar are _not_ removed. + +*Note:* Consider leaving the user topic file in place so their past signatures and revision author entries don't end up looking like AnUncreatedTopic. +If you want to make it clear the user is no longer around, replace the topic content with a note to that effect. +The existence of the UserName topic should also prevent that username from being re-used, sealing the potential security hole regarding inherited permissions. + +%IF{ + "context isadmin" + then="$percentINCLUDE{\"%TOPIC%\" section=\"removeUser\"}$percent" + else="
Remove user is only available to administrators.
" +}% + + +
+
+
+---++++!! Enter user to be removed +%INCLUDE{"%SYSTEMWEB%.JQueryAjaxHelper" section="userselector" INPUT_NAME="user" MULTI="false"}% +
+---++++!! Remove user topic? + _(Check to remove topic)_ +Prefix for deleted topic: _(Follow topic naming rules)_ +
+ + + +
+
+%ENDSECTION{"removeUser"}% + +--> + + +
+%T% For Foswiki versions prior to Foswiki 2.0, see the [[http://foswiki.org/Extensions/AntiWikiSpamPlugin][AntiWikiSpamPlugin]] extension for another method of removing users. It provides a =rest= handler to: + * Move the user topic to the Trash web. + * Remove the user from the password / mapper + * Remove the user from any groups. +
+%STOPINCLUDE% + +--- +*%MAKETEXT{"Related topics:"}%* ResetPassword, ChangeEmailAddress, UserToolsCategory, AdminToolsCategory + +