About the URCS Wiki

How To Limit Access to a Wiki Page

There are three steps to create an access-controlled wiki page:

  1. Create a page. The easiest way to do this is to:
    1. Click "edit" on an existing page
    2. Add a WikiWord to that page (that is, a word with the first letter capitalized and some other letter that is neither the second or last letter capitalized)
    3. Click "save"
    4. On the new version of that page, your WikiWord will appear with a question mark next to it. Click the question mark.
    5. Add content to the new page that appears
    6. Click "save"
  2. Create a group.
    1. Go to the TWikiGroups page
    2. Enter a group name (it must be a WikiWord that ends with the letters "Group") and click "add"
    3. Add the members of your group (identified by their usernames) to the "Set GROUP = " line
    4. Click "save"
  3. Attach your access control list to the page
    1. Go back to the page you created before
    2. Click "edit"
    3. At the very top of the page, enter text patterned after the example below
    4. Then click "save"
  4. Make sure it worked
    1. Log out of the twiki
    2. Try to anonymously access the page you just made
    3. Your request should be denied.


  * Set ALLOWTOPICVIEW = MyNewGroup 
(note: it's three spaces, an asterisk, a space, then the word "Set" then a space, then the word "ALLOWTOPICVIEW" then a space, then an equal sign, then a space, then the name of the group you just made.)


This is a very fickle process. If you type the group name incorrectly, your page will no longer be accessible. If you do that, DO NOT BOTHER THE STAFF. Instead, do this:

  1. Click "back"
  2. Copy the name of the group that you incorrectly made
  3. Use step 2 from the above instructions to create that group and add yourself to it
  4. Go to the page you made
  5. Fix the group name
  6. Delete the dummy group you made in step 3 of these instructions

Access Control Variants

The above example makes a page that only group members can view and edit. If you want to only restrict editing, then set the ALLOWTOPICCHANGE variable instead of the ALLOWTOPICVIEW variable. You can set both variables if you want. If you need to do anything more fancy than that, you should view the TWikiAccessControl page.

-- GeorgeFerguson - 30 Sep 2008: Created

-- MichaelSpear - 02 Oct 2008: Added Access Control Example

This topic: Main > WebLeftBar > TechTalk > WebStuff > WikiStuff
Topic revision: r2 - 2008-10-02 - MichaelSpear
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding URCS? Send feedback