Access Rights

Version 5.2 by Ecaterina Moraru (Valica) on 2010/02/19

Access Rights

This page aims at explaining how access rights work in XWiki. It will help you configure access rights on your wiki so that every user can only see and do what he should be allowed to.

An overview of rights

Here is a lists of all the rights available in XWiki Enterprise and their default setting.

  • Right name: brief description of the right
    • Availability: at what level can you set this right?
      • Page: this right can be set at the page level
      • Space: this right can be set at the space level
      • Wiki: this right can be set at the wiki level
    • Default status: is the right allowed or denied when the checkbox is left blank?
      • ALLOWED: this means that users CAN perform the given action if no other right is set
      • DENIED: this means that users CANNOT perform the given action if no other right is set
    • Priority order: which setting wins over another if an user has 2 different settings?
    • Checking order: at what level is the right checked first?
  • View: whether users can see the page
    • Availability:
      • Page
      • Space
      • Wiki
    • Default status: ALLOWED
    • Priority order: deny > allow > no setting
    • Checking order: page > space > wiki
  • Comment: whether users can add a comment to the page
    • Availability:
      • Page
      • Space
      • Wiki
    • Default status: ALLOWED
    • Priority order: deny > allow > no setting
    • Checking order: page > space > wiki
  • Edit: whether users can edit and save modifications to the page
    • Availability:
      • Page
      • Space
      • Wiki
    • Default status: ALLOWED
    • Priority order: deny > allow > no setting
    • Checking order: page > space > wiki
  • Delete: whether users can delete the page
    • Availability:
      • Page
      • Space
      • Wiki
    • Default status: DENIED (unless you're the document creator)
    • Priority order: deny > allow > no setting
    • Checking order: page > space > wiki
  • Admin: whether users can manage administration settings for the space / wiki
    • Availability:
      • Space (Automatically includes the view, comment, edit, delete rights)
      • Wiki (Automatically includes the view, comment, edit, delete, register, program rights)
    • Default status: ALLOWED
    • Priority order: allow > deny > no setting
    • Checking order: wiki > space
  • Register: whether users can create new user accounts
    • Availability:
      • Wiki
    • Default status: ALLOWED
    • Priority order: allow > deny > no setting
    • Checking order: wiki
  • Program: whether users can use protected APIs & Groovy code in wiki pages
    • Availability:
      • Wiki
    • Default status: DENIED
    • Priority order: allow > deny > no setting
    • Checking order: wiki

Execution order

The full answer lies in the code.

Get Connected