We are using MediaWiki inhouse for our software and hardware documentation. It looks like granting / revoking "read access" to parts of the documentation for our external users - customers, project partners - is not easy to achieve. How could we control read access to some areas of the documentation based on user or role access rights?
Edit: I am asking this because I don't like to go back to the "old style" of documentation - storing Office documents in dozens of different locations, and nobody has a clue where they are. So if there is no way to give users limited access only to their product information, I am afraid that management will drop the whole MediaWiki solution and introduce something "new and better". (this could mean we have to transfer all content to a new system, formatting and hyperlinks would be lost etc. ...).
Many thanks for the comments and answers!
Some interesting informations are available at http://meta.wikimedia.org/wiki/Access_control
For example there is a HiddenWiki patch which seems to be in active development, located at http://sourceforge.net/projects/hiddenwiki/
MediaWiki is designed for two basic access modes: Everyone can view every single page on the wiki (with the possible exception of a few special pages). This is the mode used by Wikipedia and its sister projects. Anonymous users can only view the Main Page and login page, and cannot edit any page.
Extensions made by prominent members of the MediaWiki development community are usually quite safe. Similarly any extension used on a wiki run by the Wikimedia Foundation has probably been looked at carefully, and is probably safe (There are of course no guarantees).
Go to Special Pages > User rights management and enter the username of the person to be added (Note: if you're not sure you can also go to Special Pages > User List to see a listing of everyone's that has logged into the site.) From the Available Groups column select the group the user should be added to.
MediaWiki is not really designed for disabling viewing of pages by registered users. I don't think you can do this without some pain.
From the documentation (reformated):
To have a page act normally for some users but be invisible to others, as is possible for instance in most forum software, is a very different matter. MediaWiki is designed for two basic access modes:
My school uses wikis the way you want to. A friend of mine set them up. He had to hack the software extensively to get it to work. From my experience in digging around in MediaWiki, you're in for a fun time trying to get this working.
You have four options
As others pointed out, this is not a core feature of MediaWiki.
Simplest solution might be to have a public and a private wiki with inter-wiki links. (Start by copying the original wiki and removing unwanted pages from the public installation, and adding redirects).
Another possibility might be to have separate namespaces for public and private pages, and restrict accessibility according to namespace in the config file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With