XWiki rights and permissions

Learn how XWiki evaluates rights at wiki, space and page level, how groups, allow and deny rules and inheritance interact, and how to design permissions your admins can maintain.

On this page

XWiki rights and permissions: how the model works for a knowledge base

Design XWiki rights around groups, not individual users, and set them at the wiki or top-level space first, then override only where a space truly differs. XWiki assigns rights (such as view, edit, comment and admin) to users and groups on objects such as the wiki, spaces and individual pages, and most of those assignments flow downward to the content beneath them. Each object can carry its own allow and deny entries, and a deny entry does not simply cancel an allow entry in every case, which is where most surprises come from. Before you populate the first space, decide which groups exist, which rights each group receives at each level, and where the exceptions will be. The same design work is needed after a Confluence move, because migrated permissions may not match how your XWiki groups are organized.

The difficulty grows with three things: inherited rights, page-level overrides and the number of spaces. A right granted at a parent space applies to every child space and page unless a lower object overrides it, so a single broad allow can expose content you meant to restrict. A page-level deny, or a page that was copied from another space with its own rules, can silently block a group that should have access. Each additional space multiplies the places where an override can hide, and a wiki with many spaces and few reviewers becomes hard to audit. Test the model with a small set of named test accounts in each group before you grant broad access, and record the expected result for each space, including guest access and the rights for scripting and programming, which deserve a separate review.

Before you commit to a structure, confirm the exact rights evaluation order and the default rights shipped with the XWiki version you plan to run, using the official XWiki documentation for that line. Then write down a rights matrix that lists each group, each space and the rights granted, and check it against a sample of pages that have overrides. Ask whoever will administer the wiki to show you how to view the effective rights of a page for a given user, and confirm that your identity provider groups map cleanly to the XWiki groups you designed. Keep the matrix under change control, because permission drift after many small edits is the most common reason a knowledge base becomes difficult to trust.

Which rights objects and groups XWiki uses

XWiki applies rights at several levels at once, so a single user's access depends on how the wiki, its spaces, its pages, and the groups they belong to are configured together. Each building block below controls a different part of that picture. Confirm the exact right names and their scope against the administration documentation for the XWiki version you plan to run before you write a permissions design.

Wiki and main space

The wiki itself and its main space hold the defaults that every other space inherits from. Settings applied here, such as who may view, edit, or comment on pages, act as the baseline for the whole knowledge base. Check which rights are granted to the guest account and to all logged-in users at this level before you create any spaces, because a broad grant here is easy to forget and hard to notice later.

Individual spaces

Spaces are the main unit for a knowledge base, and rights set on a space can be inherited by the pages inside it. A space is the natural place to give a team edit access to its own content without touching other teams' areas. Map each space to one owning group, and record which rights are set locally and which are inherited so that later reviews can explain the effective access.

Individual pages

Pages can carry their own rights, which override inherited settings for that page only. This is useful for confidential runbooks, HR material, or drafts, but each page-level exception adds maintenance work and can surprise administrators who expect space rules to apply. Keep page-level rights rare, document each one, and review them during access audits.

Users and groups

Users are individual accounts, and groups collect them so that rights can be granted once rather than per person. Group membership is the usual control point for onboarding and offboarding, and it is where directory integrations such as LDAP, Active Directory, or OpenID Connect usually land. Decide early whether groups are managed inside XWiki or synchronized from your identity provider, because this choice determines who is responsible for removing access.

Global and wiki administrator rights

Administrator and programming rights sit above ordinary content permissions. Programming rights allow users to run scripts and certain macros, which can read or change data beyond what page editing permits, so they should be restricted to a small, named set of trusted administrators. Confirm in the administration documentation for your version which rights are global and which are per wiki, and where each is set.

How XWiki resolves an access check on a page

The check starts when a request arrives and XWiki identifies the user and the groups that user belongs to. The engine then reads the page-level rights first, then the space, then the wiki. At each level, allow and deny entries that match the user or one of their groups can settle the question. The diagram is a simplified view of that path. Confirm the exact evaluation order and precedence rules for your target version before you write rules, because the order decides which entry wins when allow and deny entries conflict.

Simplified XWiki access check, from page rights up to wiki rights.

Decisions that shape your permission model: inheritance, groups and deny rules

This table compares the main permission design choices for an XWiki knowledge base, with the operational cost of each. Read each row as a trade-off: the option that is easiest to set up at the start is often the one that costs the most admin effort and audit time later.

DecisionOptionWhen it fitsOperational cost
Who receives rightsGroupsMost knowledge bases, where access follows teams or roles that change slowlyNeeds a group owner and a review process so membership changes stay current
Who receives rightsIndividual usersA handful of named exceptions, such as an external auditor or a single page ownerGrows quickly, is hard to review, and leaves stale grants after people move roles
Where rights are setSpace level with inheritanceStable team spaces where pages should follow one access patternLow admin effort, but a change at space level affects every page beneath it
Where rights are setPage level overridesA small number of sensitive pages inside an otherwise open spaceOverrides are easy to forget, so audits must enumerate them page by page
Deny rulesSparingly, for named exceptionsBlocking one group from one page or subtree when inheritance cannot express the ruleDeny entries can silently override later allow grants, so test each one after changes
Deny rulesAs a default toolRarely a good fit for knowledge bases; can suit tightly controlled regulated contentHigh risk of confusing access results and long troubleshooting sessions for users
Guest accessRead-only guest access on selected spacesPublic product documentation or onboarding content that must be readable without loginConfirm guest rights in each space, since a missed setting can expose more than intended
Edit rightsSeparate grant from read accessContent where contributors must be limited to their own space while readers see moreNeeds clear naming of edit groups and periodic checks that editors are still appropriate

Configuring XWiki rights and permissions in order

This sequence turns a flat set of accounts into a rights model where each space has a deliberate set of groups, defaults and exceptions. The output is a tested configuration that a wiki administrator can explain, reproduce and audit.

  1. Define the group model and naming convention

    Before touching the wiki, list the people who use the knowledge base and the roles they play, such as readers, editors, space owners and administrators. Map each role to a group, then write a naming convention that shows the space or function in the name, for example a prefix per business area. Confirm with the content owners which groups should exist and who may add members. The step is done when every planned group has a name, a purpose and a named owner in a written list. If your identity provider already holds directory groups, decide now whether XWiki groups will mirror them or stay local.

  2. Create the top-level space structure

    Lay out the main spaces that will hold content, following the areas identified in the group model. Keep the hierarchy shallow enough that administrators can reason about inheritance from one screen. Create the spaces in a test or staging instance first, so that rights changes can be rehearsed without affecting users. The step is complete when the space tree matches the approved diagram and each space has a single accountable owner recorded in the configuration register.

  3. Set wiki-level and main-space defaults

    Review the global rights in the administration settings and decide which groups hold view, edit, comment and script rights at wiki level. Restrict scripting and administration rights to a small administrator group, and confirm how guest access is handled. Then set the default rights on each main space so that new pages inherit a sensible baseline. Check the inheritance behaviour with a sample page in each space. The step closes when a newly created page in a main space shows the expected rights in the rights view and an account outside the intended groups cannot edit it.

  4. Assign space-level rights to groups

    Grant rights to groups at space level rather than to individual users, so that membership changes flow through the group and not through many edits. Use allow rules for the groups that need access and avoid deny rules unless a specific exception requires them, because deny rules are harder to reason about when inherited. Record who approved each grant. The step is done when every space has its groups assigned and the list of allow and deny entries can be explained by someone who did not configure them.

  5. Add page-level exceptions only where needed

    Page-level rights should be the exception, not the design. Identify the few pages that need stricter or looser access than their space, such as an HR policy inside an otherwise open space, and set rights on those pages only. Document the reason for each exception in the register, because exceptions are the most common source of confusion during later audits. The step closes when the list of page-level overrides is short, each has a recorded reason and a named owner, and the wiki administrator can find them through a search or export.

  6. Test with representative test accounts

    Create test accounts for each role and add them to the groups defined earlier. Log in as each account and check what it can view, edit and administer in several spaces, including one space it should not edit. Test an exception page and a page created after the defaults were set. Record each result as expected or unexpected, and fix the configuration before any real user is added. Confirm that the test accounts are removed or disabled afterwards. The step is done when every role has passed its checks and the failures from the first round are resolved.

  7. Record final rights in a configuration register

    Write a configuration register with one entry per space. Each entry should list the owner, the groups and their rights, any deny rules, the page-level exceptions with reasons, and the date of the last test. Store the register under change control so that future changes are logged. Review it with the security or compliance lead and ask them to confirm which evidence they need for their assessment. The step is complete when the register matches the live configuration and a second administrator can rebuild the rights from it.

How to set rights for different kinds of knowledge base spaces

An open internal space is one where most staff read and edit, such as an engineering handbook, a company policy index or a team onboarding area. The goal is to keep the rights model simple so that editing is easy and few exceptions exist. Most rights should come from a small set of broad groups granted at the space level, with pages inheriting those grants instead of carrying their own.

  • Group structure: Use one all-staff group for read access and one editors group for write access, both tied to your directory groups where possible.
  • Inheritance: Keep grants at the space level and let pages inherit them, so new pages are usable without manual setup.
  • Deny rules: Avoid deny rules here. A deny on a single page is hard to find later and tends to confuse editors who cannot see why they are blocked.
  • Scheduled review: Review the editors group each quarter and remove members who have changed teams or left.
  • Guest access: Confirm that guest or anonymous access is off unless the business has explicitly approved it for this space.

Validate the open-space pattern against your own data classification, since an internal policy that looks harmless may still contain information your classification scheme treats as restricted.

What drives effort in a permissions design

This table lists the drivers that change the work and risk of an XWiki rights design, with how each one grows the effort and how to keep it under control. Read it before you ask for a quote, because the scope you write down determines the price. No cost or duration figures are given here, so ask for a quote built from your written scope.

DriverWhy it changes effort or riskHow to keep it down
Number of spaces and pages with overridesEvery page-level allow or deny rule must be understood, tested and maintained. Overrides hide effective rights from anyone reviewing a space, so each one adds review and troubleshooting time.Set rights at the highest sensible space. Allow page-level overrides only for a named case, and review the override list on a fixed schedule.
Number of groups and nesting depthEach group is a grant that must be named, owned and tested. Nested groups make the effective rights of a user hard to explain without tracing several levels.Keep group levels shallow, name groups by the access they grant, and assign one owner per group.
Mapping to the identity providerIf XWiki groups must match directory groups, every change in the directory may require a matching change in XWiki. Mismatched names or missing sync rules cause access errors that users report as outages.Agree one source of truth for membership, list the directory groups that will be mapped, and test sync with a few real accounts before rollout.
Permissions carried over from another toolMigrated permissions often reflect old habits, duplicated groups and exceptions no one can explain. Mapping them one by one takes analysis time, and copying them unchanged copies the problems.Export the existing permissions, decide which ones still apply, and rebuild them as a small set of groups instead of copying every grant. Confirm how the migration tool carries permissions over before you plan this work.
Number of compliance-relevant spacesSpaces holding regulated or sensitive content need documented rights, evidence of who can read and edit, and periodic access reviews. Each one adds design, documentation and review effort.Limit the compliance-relevant spaces to those that need them, document the intended rights for each, and keep the evidence format the same across spaces.
Frequency of reorganizationsMoving or renaming spaces can change how inherited rights apply. Each reorganization needs a rights check, and frequent changes repeat that check and raise the chance of accidental exposure.Fix the top-level space structure early, define a change process for moves, and recheck effective rights after each reorganization.
Exceptions without a recorded reasonUndocumented exceptions are the most common source of unexplained access. Finding out later why a rule exists costs more than recording it at the time.Require a short recorded reason, an owner and a review date for every page-level exception.

How to test that rights hold and fail safely

Treat the rights model as code that needs a test plan before any restricted space goes live. A failed test should block go-live for restricted spaces, because a permission that looks right in the administration screens can still expose content once inheritance, guest access or a scripting right is involved. Build the plan around the outcomes you designed: for each group, list the pages and spaces it must reach, the actions it must be able to take (view, edit, comment, delete, administer), and the things it must never reach. Each row is one test case with an expected result, and the expected result is written down before anyone logs in.

Use dedicated test accounts, one per group and one per edge case, rather than an administrator's own account. Admin accounts bypass most of the checks you are trying to prove, so a test run under one proves nothing about a member of the group. Include a user who belongs to two groups with conflicting rules, a user in no group at all, and a user who is a member of a group that is misspelled or does not exist in the directory. The last case matters because a missing or misspelled group should grant nothing. Confirm this by checking that the account sees denied pages and receives a denied response on direct URLs, search results and attachments, not only on the navigation menu. Test guest access and scripting rights separately, with an unauthenticated session and with an account that lacks script rights, and confirm administrator-only actions fail for everyone else.

Repeat the full test run after structural changes, not only at first launch. Moving a space, renaming a group or changing a parent page can alter which rule applies, so rerun the same cases and compare results with the baseline. Confirm the exact behavior against the XWiki version you run, because rights handling details can change between lines, and record the results as evidence for your own review.

Locking down guest access, scripting and admin rights

Most XWiki rights incidents come from a small number of settings: guest access, broad groups, script rights, inherited admin rights and temporary deny rules that never get restored. Each card below names one risk, the control that limits it, and how to review that control on a schedule. Servlet container and database settings are covered in the security hardening topic.

Guest access to private spaces

Guest access is a view right granted to users who are not logged in. If it is set on a wiki or space that should be private, anyone who can reach the URL can read it. Check the global guest settings first, then check each space for view rights granted to the guest group. Confirm that private spaces contain no view grant for guests and that the wiki does not expose content to unauthenticated users unless that is an explicit decision. Repeat this check after each new space is created and after each migration.

Edit rights granted through broad groups

A group such as XWikiAllGroup covers every registered user, so an edit right granted to it lets any account change content in that space. Review each space's edit grants and replace broad groups with the specific teams that own the content. Pages that need wide contribution should use a separate contributor group that is reviewed by a named owner. Ask who approves membership changes for each group that carries edit rights.

Programming and script rights held by too many users

Script and programming rights let a user write server-side code in wiki pages, which is far more powerful than editing text. XWiki separates these rights from ordinary edit rights, and they should sit with a small, named group of developers. Export the list of users and groups holding programming rights, and remove any account that does not need them for current work. Treat each grant as a privileged access decision that needs a recorded reason.

Admin rights inherited unintentionally

Rights set at the wiki level flow down to spaces and pages unless a lower level overrides them. A broad admin grant made at the root can therefore reach spaces that were meant to be managed by a team lead. Review admin rights at the wiki level and then at each top-level space, and note which grants are inherited and which are set locally. Restrict wiki administration to a small group and confirm that space administrators cannot change wiki-wide settings.

Deny rules removed during troubleshooting

Deny rules block a right even when an allow rule would otherwise grant it, so they are the first thing to check when a user cannot see or edit content they should reach. Administrators often delete a deny rule to restore access quickly and never put it back, which silently widens access elsewhere. When troubleshooting, record the rule before changing it, make the change on a test space where possible, and restore any deny rule that was removed once the cause is found. Review the list of deny rules at each quarterly access review.

Unreviewed access changes after migration

Imported permissions can carry over grants that no longer match the target design, including guest access and broad groups from the source system. Compare the imported rights on each pilot space with the intended design before users are added. Keep a dated record of who approved each rights model, so that reviewers can later confirm that the live configuration matches it. The migration topic covers how permissions are mapped during a Confluence move.

What to review, document and hand over after go-live

Permissions drift after go-live, so the rights model needs a recurring review. Schedule a periodic review of group membership and space rights, with each space owner confirming who belongs to the groups that hold edit, admin and view rights on their space. Check for stale accounts, groups that have grown beyond their purpose, and page-level exceptions that were meant to be temporary. Keep a change log for every page-level allow or deny rule added outside the space defaults, recording the page, the rule, the requester, the approver and the reason. Deny rules deserve particular attention because they override inherited grants and are easy to forget. Confirm in your installed version which rights reports, exports or audit views are available, since the exact options vary and should not be assumed.

Every space needs a named owner and a repeatable way to create new ones. Maintain a register that lists each space, its owner, its purpose, its sensitivity classification, the groups granted rights on it and the date of the last review. For new spaces, define a template or a documented creation procedure that applies the agreed defaults: which groups receive view, comment and edit rights, whether guest access is off, and which admin rights are reserved for the platform team. Test the template on a pilot space before relying on it. Because the template fixes the starting state, most later rights questions can be traced back to it.

The handover package should let the client team run the model without the implementer. Hand over the group model with its naming convention and the rule for who may create or change groups, the rights register, the test accounts procedure (which test users exist, which groups they belong to, and how their credentials are stored and rotated), and the review calendar with named owners for each review. Walk the client team through one full review cycle and one new-space creation while the implementer is still present. Agree in writing which items the client maintains and which remain under a support arrangement, since the scope of ongoing support is set by the engagement terms.

Questions teams ask before designing XWiki permissions

How much effort does an XWiki permissions design take?

Effort depends mostly on how many spaces, groups and exceptions the knowledge base needs, not on XWiki's rights engine itself. A design for a small wiki with a few teams can be settled in a short workshop, while a wiki with hundreds of spaces, nested teams, external contractors and confidential areas needs a rights matrix, test accounts and several review rounds. The main drivers are the number of distinct audiences, how many spaces break from the default inheritance, whether rights must be granted to groups or individuals, and how much history of exceptions exists in a source system. Ask any partner for a written scope that lists the spaces in scope, the groups to be mapped, the rights levels to be defined and the verification steps.

How long does it take to finish a permissions design?

The duration is set by the number of decisions that need sign-off, not by configuration work alone. Most delays come from waiting for data owners to confirm who should read and edit each space, and from unresolved conflicts between central IT policy and team autonomy. Plan for a discovery phase, a draft model reviewed by space owners, a pilot in a few spaces and a final rollout. Ask for a timeline in the written scope that names the client's approvers and the dates they must respond by, because those dependencies usually decide the schedule.

What does the design need from our identity and admin teams?

The design needs your identity team to confirm which directory groups are authoritative, how they are named, who owns them and how joiners, movers and leavers are handled. XWiki rights are easiest to manage when they are granted to groups that already exist in your identity provider, so the admin team should confirm whether groups come from LDAP, Active Directory or OpenID Connect claims. Your wiki administrators also need to agree who can create spaces, change global rights and manage the XWiki administrator account. Confirm these owners before design starts, since mapping groups is where many access gaps appear.

Can our team design XWiki permissions without outside help?

Yes, a team with an XWiki administrator, someone who understands the business structure of the knowledge base and a reviewer for security can do this internally. The work is mostly documentation and testing: defining rights levels, deciding inheritance, writing deny-rule exceptions and checking results with test accounts. Outside help is most useful for a large or sensitive wiki, when you need an independent review of the model, or when staff lack recent XWiki administration experience. Whichever route you take, the output should be a written rights model that someone other than the designer can apply and audit.

Can we migrate permissions from Confluence into XWiki?

Permissions can be carried over in part, but the Confluence model does not map one to one onto XWiki, so every migrated right should be reviewed. According to the Confluence Migrator Pro extension listing from XWiki SAS, it migrates spaces, pages, users, groups and permissions, along with attachments and metadata. Even so, you should compare Confluence space permissions with the groups and rights you want in XWiki, because inherited or legacy grants can be broader than intended. Request from any migration partner a permission mapping table and a pilot space check before the full move.

How do we change rights after go-live without breaking access?

Make changes at the group level wherever possible, test them in a copy or a pilot space first, and roll them out with a record of who approved them. Changing an individual page or a deny rule can silently remove access for people who depend on inheritance, so review the effective rights for affected users before and after the change. Keep a short change procedure that names the approver, the test accounts used and the rollback steps. Ask whether a support or retainer arrangement covers ongoing rights reviews, since that recurring work is often missed in the original budget.

What should we check in a permissions design before approving it?

Check that every space has a named owner, that rights are granted to groups rather than individuals where possible, and that deny rules are limited and documented. Confirm that guest access and scripting rights are deliberately set and that administrators are a small, reviewed group. Ask the designer to show test results for representative accounts, covering both allowed and denied actions. Finally, confirm how the model will be reviewed on a schedule and who is responsible when a new team or contractor joins.

How DeployOpen scopes, builds and hands over XWiki permissions

DeployOpen treats XWiki rights as a design task before it is a configuration task. We map the groups, spaces and page exceptions your knowledge base needs, then build and test them inside your own infrastructure so your security and compliance teams can review exactly what was set and why.

How we scope

  • Inventory who needs to read, edit and administer each wiki area, using your directory groups as the starting point
  • Define the space tree and the level at which rights are granted, so most access comes from inheritance rather than page-by-page edits
  • Agree the written scope, deliverables and timeline before work starts, since most engagements are fixed-scope

How we build

  • Configure groups, global and space rights, and deny rules in a staging XWiki, then test each role against the access matrix
  • Review guest access, scripting rights and programming rights so permissions do not widen through scripts or extensions
  • Run negative tests with test accounts from each group to confirm that restricted pages stay restricted after changes

How we hand over

  • Deliver a rights matrix listing groups, spaces, granted and denied rights, and the reason for each exception
  • Document the procedure for adding users, creating spaces and requesting exceptions so your team can run it without us
  • Walk your administrators through the design and the test results, and record open decisions for your owners to confirm

How we support

  • Retest permissions after upgrades, migrations or new extensions that could change how rights are evaluated
  • Offer ongoing support, upgrades and continuous testing as a retainer if you want a partner to keep reviewing access
  • Confirm with your own team how directory group changes flow into XWiki before go-live, since sync behavior depends on your identity setup

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.