You are here: Foswiki>System Web>AdminToggle (2024-12-23, UnknownUser)Edit Attach
This topic implements a button that will turn Admin status on or off for the current user (%WIKINAME%), by adding or removing the user from the AdminGroup. This new function is recommended to replace internal admin login when possible. It provides better security and allows changes to be tracked to the user making the change instead of the anonymous AdminUser.
This is actually a generic capability. Any group membership can be toggled using this function.
Note: This feature is only usable if your User Mapper allows group membership to be modified from the Wiki.
* ALLOWTOPICCHANGE = AdminGroup, JoeTheAdmin, AnotherAdmin
%INCLUDE{"AdminToggle"}%
in their custom sidebar topic, or somewhere else convenient. If you (WikiGuest) has permission to change the AdminGroup topic, a button to add or remove yourself from the AdminGroup will appear below: Be sure that you have explicit CHANGE authority on the AdminGroup or removing yourself from the group will be permanent.
You can add this button to your custom sidebar for any group, by using the following include macro:
%INCLUDE{"%USERSWEB%.GroupViewTemplate" section="manageself" groupname="AdminGroup"}%
Edit | Attach | Print version | History: r1 | Backlinks | View wiki text | Edit wiki text | More topic actions
Topic revision: r1 - 2024-12-23, UnknownUser
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback