How to enforce XWiki user and wiki limits before growth breaks the plan
If you run a hosted, departmental or customer-facing XWiki, registrations or subwikis can grow past what was agreed long before anyone notices. The Limits Application lets administrators cap the number of users and subwikis on an instance, so the platform itself stops new growth once a ceiling is reached. Teams usually need it when a wiki is provisioned under a plan, a fixed seat count, or a per-department allocation, and when self-service registration or subwiki creation could otherwise exceed that agreement without a review.
Be clear about what the feature is. The Limits Application is one control within administering a plan. It enforces the limits you configure on the instance; it does not invoice anyone, track contract terms, or tell you whether a customer has paid. Your commercial record, renewal process and any seat reconciliation stay in your own systems. Before you rely on it, confirm in the XWiki documentation for your version exactly which limits it can enforce, how it counts users (for example, whether disabled or guest accounts are included), and how administrators are notified or blocked when a limit is hit.
Plan the decision before you enable anything. Write down the agreed user and subwiki numbers, who owns changes to them, and what should happen at the ceiling: new registrations refused, subwiki creation blocked, or an alert sent to an administrator for approval. Then test the behavior on a non-production copy with a few dummy accounts, because a limit that blocks legitimate staff during a rollout is harder to fix than one set slightly high. Record the configuration and the test results so an auditor or customer can see how the cap is enforced.
Which deployment models need instance limits
A provider running XWiki for several customers on shared infrastructure needs limits to stop one tenant's growth from consuming capacity promised to the others, and to keep each customer within the plan it bought. Here the cap is both a capacity control and a commercial control.
- Plan enforcement: Caps match what each customer contracted, so growth beyond a plan leads to an upgrade conversation rather than silent overuse.
- Shared capacity: User and subwiki counts add load on shared Tomcat, database and index resources, so a cap gives you a known ceiling per tenant.
- Self-service creation: If customers can create subwikis or register users themselves, a cap keeps growth from outpacing billing.
- Resource gaps: Limits do not measure page volume, attachment storage or request rates, so per-tenant monitoring and quotas are still needed at the infrastructure layer.
Confirm whether the Limits Application counts inactive, guest or disabled accounts, and how it reports usage to the operator before a cap is reached.
A department funded for a fixed number of seats needs the wiki to stop admitting users once that budget is used. The main risk is informal sharing: colleagues from other teams obtain accounts, and the counted seats grow without anyone approving the change.
- Budget alignment: A seat cap turns a yearly funding decision into a technical control that applies every day.
- Account sprawl: Contractors, shared logins and former staff with active accounts all count toward growth, so the cap is only as accurate as the account lifecycle behind it.
- Member-created structures: If team members can create spaces or subwikis, a user cap alone does not bound the number of structures.
- Out of scope: A cap does not decide who belongs in the seat pool or remove access for people who left, so those steps need an identity process, often driven from your directory.
Ask who owns the seat count, how often it is reconciled with the directory, and what happens to an access request once the cap is reached.
When a vendor gives customers a wiki, such as a partner extranet or customer documentation portal, under a contract with a named user count, the cap becomes a contract term. Over-allocation creates disputes, and under-enforcement creates revenue leakage. XWiki SAS publishes support and Pro tiers by user count, which is a separate commercial matter from enforcing a cap in your own instance.
- Contract mapping: The cap value must match the contract language, including what counts as a user (invited, active or guest).
- Customer administrators: Tenant admins may invite users, so the cap must apply to every invitation and registration path.
- Usage evidence: Customers will ask how usage is counted, so you need counts that can be exported and explained.
- Out of scope: A cap does not stop a customer from sharing public pages or exports with non-users, and it does not replace a data processing agreement.
Confirm with legal what counts as a user, then test each invitation and registration path against the cap before go live. For context on how XWiki SAS prices its own subscriptions, see XWiki pricing.
An internal intranet is usually meant to grow with headcount and content, so a hard cap can block legitimate work. The risk here is operational rather than commercial: subwikis, pages and attachments grow without anyone sizing the platform for them. Caps can serve as a planning signal as much as an enforcement tool.
- Sizing signal: User and subwiki counts show when the platform needs more memory, database capacity or search work.
- Administrator warnings: Confirm whether the Limits Application supports warning levels before it refuses new users, so teams can plan ahead.
- Automated creation: Scripts or the XWiki CLI can create subwikis quickly, so a cap protects against accidental bulk growth.
- Out of scope: Page count, attachment size and index growth are not user or wiki limits, so they need their own capacity review.
Decide whether this instance needs a hard cap at all, and set a review date tied to headcount forecasts and capacity planning.
Limits Application options and when each fits
This table compares the two limits the Limits Application can enforce, maximum users and maximum subwikis, and the situation each one suits. Read it as a planning aid: confirm option names and the exact behaviour at the limit against the Limits Application documentation for the XWiki line you deploy. The main takeaway is that a user cap and a subwiki cap control different growth paths, so most plans need to decide which one matters first.
| Limit | What it controls | When it fits |
|---|---|---|
| Maximum users | Number of user accounts the instance will accept before new registrations or accounts are blocked | Customer-facing or public wikis sold by seat or tier, where the plan defines how many people may sign in |
| Maximum subwikis | Number of subwikis that can be created on a farm-style instance | Hosted setups that give each department, client or tenant its own space and need the count held to the agreed plan |
| Reaction at the limit | Whether creation is refused, a warning is shown, or an administrator is notified; confirm the exact behaviour for your line | Choose a hard stop where a plan must not be exceeded, and a softer signal where operations teams prefer to review growth first |
| Who sets the value | Instance administrators through the Limits Application configuration; confirm where the setting lives in your version | Keep the configured value in a change record so auditors can match it to the commercial plan |
| Existing accounts and wikis | Whether limits apply to records already present when the limit is lowered; confirm this before changing a live value | Measure current counts before setting a cap, so an existing instance is not put into an immediate blocked state |
| Limit enforced on the wiki farm | Counts across the whole instance, which matters when several teams share one installation | Shared hosting where one heavy tenant could use capacity planned for others |
| Monitoring and evidence | Records of counts and limit events that can be reviewed later; confirm what is logged in your version | Regulated or contracted environments that must show the plan was enforced, not just written down |
Setting up the Limits Application step by step
This sequence takes an XWiki instance from a version check to a tested, documented set of user and subwiki caps, so growth stays within the plan you agreed. Each step ends with a check you can record before moving on.
Confirm XWiki line and extension compatibility
Record which XWiki line the instance runs (stable, LTS or intermediate LTS) and its exact version, then check the Limits Application's compatibility notes in the XWiki Store against that version before anything is installed. The team lead for the wiki platform and the administrator who owns the Tomcat host should both sign off on the target version. The step is done when the version, the matching extension release and the approval are written in the change record. Confirm the exact version pairing with the XWiki Store or XWiki support, because compatibility changes between releases.
Confirm the official image and staging copy
If the instance runs from the official Docker images, note the image tag and database variant (MySQL, PostgreSQL or MariaDB) so the extension is added to the same build path rather than changed by hand inside the running container. Create a staging instance from a recent backup of production with the same line, database and Tomcat setup. The step is done when staging starts, logs in with an administrator account and shows the same XWiki version as production.
Install the Limits Application through the extension mechanism
Install the Limits Application on staging using the extension mechanism your deployment uses, such as the Extension Manager in the administration interface or a packaged build that your team maintains. Restart or reload the wiki if the installer asks for it. A deployment team member performs the install and records the extension ID and version. The step is done when the extension appears as installed in the Extension Manager, and the wiki log shows no errors on startup.
Set user and subwiki caps in administration
In the administration interface on staging, open the Limits Application settings and enter the maximum number of users and the maximum number of subwikis that match the approved plan. Keep the values in a short table with the date and approver's name. Only a wiki administrator should have access to these settings. The step is done when the saved values reappear after a page reload and match the table exactly.
Test registration and subwiki creation against the caps
Create test accounts up to one below the user cap, then try one more registration and confirm it is blocked with a clear message. Create subwikis up to the subwiki cap and confirm the next creation attempt is refused. Use a non-production test account set and delete test data afterward. The step is done when both limits block at the exact boundary, and the blocked attempts appear in the wiki or server log for review.
Confirm the caps hold after restart and upgrade
Restart the staging instance and repeat one registration and one subwiki creation test to confirm the caps persist. Check that existing accounts and subwikis above a cap, if any, behave as your plan expects, since the caps may only block new items. Run the same check after a test upgrade if one is planned. The step is done when the restart and upgrade checks produce the same results as the earlier tests and the outcomes are logged.
Document thresholds and who can change them
Write a short record that lists the approved user and subwiki caps, the extension version, the staging test results, the rollback steps and the named roles allowed to change the limits. Store it in the wiki's administration area with restricted access, and link it from the change process used for production. The step is done when the record is approved by the platform owner and a reviewer confirms the named roles match the current administrator list.
Apply the same configuration to production
Schedule the production change through your normal change process, repeat the install and cap settings from the approved record, and run the registration and subwiki boundary tests on production using test accounts only. The step is done when production shows the same version, caps and test outcomes as staging, and the change record is closed with the results attached.
How a registration or subwiki request meets the limit
The flow starts when a user submits a registration or a subwiki creation request in the XWiki instance. Before the account or wiki is created, the Limits Application compares the current count of users or subwikis against the limit configured for the instance. If the count is under the limit, the request proceeds and the new user or subwiki is created. If the count has reached the limit, the request is blocked and an administrator is notified. Check that the limit is set for the right object type and that the notification reaches a monitored mailbox, since a blocked request that nobody sees will stall onboarding.
Illustrative flow of a registration or subwiki request checked against a configured limit.
Security and operational risks of capping growth
A limit is only as good as the controls around it. The cards below cover who can change limits, how registration and guest rights interact with them, how to avoid locking out people during an incident, and how to keep the configuration aligned with what the organization has contracted for.
Who can change limits
Changing a user or wiki cap is a configuration change to the instance, so it should sit with a small named group of administrators. Confirm which accounts can edit the Limits Application settings, whether those edits are recorded in the instance history or logs, and who receives an alert when a cap is raised. Without that record, a cap can be quietly lifted and nobody notices until the plan is exceeded.
Registration and guest rights
A cap on users only holds if the paths that create accounts are controlled. Check whether self-registration is open, whether guests can create pages or comments, and whether invitations or imports can add accounts outside the normal flow. A wiki that accepts open registration can reach its user limit with accounts nobody approved, which then blocks the legitimate staff or customers the cap was meant to protect.
Blocking people during an incident
A full user or wiki limit can stop the work that matters most during an incident, such as creating a response space for a new team or onboarding a contractor for recovery. Decide in advance which accounts stay exempt from the cap, such as break-glass administrators, and test that they can still sign in. Confirm the behavior when a limit is hit, including what end users see and whether existing users can still work.
Keeping limits aligned with the plan
The cap should mirror the number of users and wikis the organization has contracted for, not a figure remembered from the original setup. Assign an owner to reconcile the instance count against the contract at each renewal and after any acquisition or new customer onboarding. Ask your vendor or internal finance team to confirm the exact counting rules, such as whether disabled accounts or guest accounts count toward the total.
Backups and configuration review
Limit settings live in the instance configuration, so a restore from backup can silently change them. After any restore, migration or upgrade, verify the current values against the approved plan before users return. Keep the configuration under review and record the date of each change, so the team can show which limits were in force at any point in time.
Reviewing usage with admin tools
Before a cap is set, and on a regular schedule after that, review actual usage to see how many users and wikis are active and how close the instance is to its limit. Confirm which Admin Tools views report user and wiki counts in your XWiki version, and whether they distinguish active from dormant accounts. Regular reviews catch growth early, so a limit is raised by decision rather than discovered by a blocked user.
What to confirm before enforcing limits in your environment
Does the Limits Application behave the same on every XWiki line?
Not necessarily. Confirm the exact behaviour on the XWiki line you plan to run, because the stable line, the intermediate LTS line and the LTS line are released on different schedules and extensions can change between them. At the time of research, the official Docker image tags were 18.8.0 for stable, 18.4.7 for the intermediate LTS and 17.10.14 for LTS, so check the version you pin against the Limits Application documentation for that release. Build a test instance from the same image tag, configure a low cap, and confirm that the block, warning and counting behaviour match what your plan requires before you touch production.
Do guests, administrators and deactivated users count toward the limit?
Confirm this explicitly, because the answer decides whether your numbers match your contract. Ask whether guest access, global administrators and wiki administrators are included in the user count, and whether accounts that have been deactivated or left unused still take a seat. Create one account of each type on the test instance, then check the count shown by the application and whether a new registration is refused at the expected point. Write the result down alongside the licence or plan terms your customer or department has agreed, so that billing and enforcement use the same definition.
How much does the limit check slow down page creation and registration?
Measure it on a copy of your data, not on assumptions. The check runs when a user is registered or a subwiki is created, so the cost is usually small for a single action, but it depends on how the count is computed and on the size of your user base and wiki count. Load a realistic number of users and subwikis into the test instance, then time registration, subwiki creation and page loads under normal traffic, and compare them with a baseline taken with the application disabled. Repeat the test on the hardware and database you will use in production, since a shared database or small Tomcat heap can change the result.
What happens to limits and their settings during an XWiki upgrade?
Confirm that the configuration survives the upgrade and that enforcement still works afterwards. Check the upgrade notes for the target version, then run the upgrade on a copy of production with the same extensions and database. After the upgrade, verify that the configured caps still exist, that existing counts are not reset or miscounted, and that a new user or subwiki beyond the cap is still refused. If an extension version must change with the platform, confirm the compatible pairing with the extension's own documentation before you schedule the production window.
Is the Limits Application available for my deployment type?
Confirm availability for your exact deployment before you plan around it. XWiki is licensed under the LGPL 2.1, and the official Docker images come in MySQL, PostgreSQL and MariaDB variants on Tomcat for amd64 and arm64v8, but an extension's availability can differ by line and by how the instance is packaged. Check the extension catalogue for the XWiki version you run, and install the extension on a container-based test instance that uses the same image and database as production. If the extension is not available or is not supported for your deployment, the limit may have to be enforced through a process or a separate control, so decide that before you commit to a design.
Who is responsible for setting up and verifying the limits?
Your team owns the limit policy and the evidence, and a partner can build and test the setup if you prefer to outsource it. Internal staff need administrator access to the instance, the ability to run a test instance and a written definition of what counts toward each limit. A fixed-scope engagement with DeployOpen would cover planning, configuration on a test instance, verification and documentation of the results, with the scope and deliverables agreed in writing before work starts. Ask any provider to state who runs the upgrade tests and who signs off the counts, because those responsibilities determine whether the controls keep working after the first year.
What evidence should I keep to show limits are enforced?
Keep the configuration, the test results and the change history, not only the setting itself. Record the XWiki version, the extension version, the cap values, the counting rules and the date each test was run, then store screenshots or exported outputs from the tests that prove a new registration or subwiki is refused at the cap. Repeat the test after every upgrade and after any change to authentication, since a new login path can create accounts outside the expected flow. This record helps when a customer, auditor or internal reviewer asks how growth is controlled, and it gives your team a clear starting point when behaviour changes.
Deciding between a hard cap and monitoring
Start with the contract: if it sets a seat or subwiki ceiling, the limit is a commitment you must enforce. Next, ask whether the wiki is customer-facing, since external users and tenants raise the cost of exceeding a limit. Then ask whether the plan requires blocking growth or only alerting before a threshold. Each answer leads to one of three outcomes: enforce a limit, monitor usage, or review the subscription tier. Check the answers with the owner of the commercial terms before you configure anything.
Decision path for choosing enforcement, monitoring, or a tier review.
How DeployOpen scopes limit enforcement work
A fixed-scope engagement starts by writing down the plan terms the limits must enforce, because the Limits Application can only count what the business has defined. Before work begins, the written scope should name each plan, the user and subwiki caps attached to it, and what counts as a user for those caps (for example, whether guests, disabled accounts or service accounts are included). It should also fix the XWiki line the instance runs on, whether stable, the long term support line or the intermediate LTS line, since the Docker tags supplied for those lines differ and the Limits Application's behavior should be confirmed against the version actually deployed. The scope then lists the test cases: creating users up to and past each cap, creating subwikis at the boundary, and checking how an administrator is warned or blocked. Each test case is tied to an expected result the client signs off.
The handover documentation should match the same written scope. Expect a record of the configured caps, the account and group that may change them, the steps for raising a limit under the client's change process, and the evidence from each test case. Ask the provider to show where that evidence is kept and how it would be produced for a customer or auditor review, without assuming it satisfies any particular framework on its own. Confirm too which parts depend on the chosen database and Tomcat setup, since those are part of the XWiki deployment and must be documented alongside the limits.
Changes after go-live are usually handled through a retainer, which covers later plan changes, XWiki upgrades that could affect the Limits Application, and retesting the caps after an upgrade. A retainer is recurring, so ask the provider what it includes, how requests are prioritized and how many changes it covers. Ask about the scope of any one-time work separately. DeployOpen does not publish prices, so request a written quote built from these scope items and confirm what is priced as one-time work and what recurs.
How DeployOpen delivers XWiki administration work
DeployOpen approaches user and wiki limits as a planned change to a self-hosted XWiki instance, not a one-off setting. We agree what the Limits Application must enforce, build it in your infrastructure, and hand over the configuration and the records your team needs to run it.
How we scope
- Written scope names the user and subwiki caps, the plan tiers they map to, and who approves changes.
- We confirm which XWiki line and database variant your instance runs before any limit is configured.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- We configure the Limits Application on a staging copy and check how caps behave at and past each threshold.
- We test that blocked user creation and subwiki requests return the messages your support team expects.
- We document any settings that need the instance administrator and confirm each one against your version.
How we hand over
- Handover covers the limit values, their owners, the change procedure and the steps to raise a cap.
- Your administrators receive a walkthrough of where usage is reported and how to read it.
- Documentation is written for your team to run limits without DeployOpen involved in routine changes.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer for your XWiki instance.
- A retainer can cover re-checking limits after XWiki upgrades, since behavior may change between versions.
- Ask any provider to confirm response scope and change control in the written agreement before signing.

