How XWiki Google Workspace login and Google Drive documents work together
The XWiki Google Apps Integration (Pro) suits an IT or workplace team that wants staff to sign in with their existing Google accounts and to reach Google Docs from wiki pages. The extension provides OAuth2 login for XWiki users and Drive document handling, and it requires XWiki 15.10 or later. Plan the XWiki version first, because an older instance cannot take this extension regardless of how the Google side is configured.
The two functions are separate in behavior but share one foundation. Login decides who can reach the wiki at all: it authenticates the user against Google and creates or matches the XWiki account. Drive handling decides what those users can do with documents: importing a Google document as an attachment, editing it in Google Apps and reimporting it, or embedding it with the {{drive/}} macro. Both depend on the same Google Cloud project, the same OAuth consent screen and the same client credentials, so a change to one credential or consent setting affects both functions at once. Confirm with the vendor which Google APIs each function calls and what scopes the consent screen must request, since those details decide what your Google administrators must approve.
Because the functions share a project, decide the ownership and change process before setup. Name who holds the Google Cloud project, who can rotate the client secret, and who signs off on any change to the login domain restriction. A sound first step is to test login and one Drive round trip in a non-production XWiki instance that uses a separate Google project, then copy only the approved configuration into production.
What you need before enabling Google sign-in in XWiki
Google sign-in and Drive macros depend on a few decisions made before any configuration: the XWiki version, the license, the Google project owner, HTTPS on the public URL and the email domain allowed to log in. Settle these first, because each one changes the setup steps that follow. Confirm the exact Google-side and XWiki-side requirements against the Store page before you start.
XWiki version floor
The Google Apps Integration requires XWiki 15.10 or later. Check the version of every instance that will use it, including staging and any container image you pin. If you run an older line, plan the upgrade first, because the extension will not install on it. Confirm the current compatibility notes on the Store page before you choose a target version.
Store extension pagePro license for the connector
The Google connector is part of XWiki Pro, not the free XWiki Standard distribution. Ask whether your subscription tier covers this extension and how it is priced for your user count. Also ask what support SLA applies if the connector breaks during an XWiki upgrade. Get the license scope in writing before you build anything.
Google Cloud project owner
Someone with rights to create a Google Cloud project, enable the People API and Drive API, configure the OAuth consent screen and issue client credentials must be named before work starts. In a Google Workspace tenant, confirm whether your administrator policies allow external OAuth clients or require internal app settings. Record who owns the project and who can rotate its credentials.
HTTPS on the public wiki URL
Google redirects users back to your wiki after sign-in, so the public URL must use HTTPS with a valid certificate and a stable hostname. Decide the exact base URL now, including any reverse proxy path prefix, because the redirect URI registered in Google must match it character for character. Changing the hostname later means updating the Google client configuration.
Allowed login email domain
Decide which email domain may log in, such as your primary company domain, and whether contractors or secondary domains need access. The connector can limit login to one domain, so an unrestricted setup would let any Google account authenticate. Document the decision and its owner, since it becomes the main access control for wiki sign-in.
Configuring the Google Cloud project and the XWiki extension in order
This sequence produces a Google Cloud project with the required APIs and OAuth client, an installed Google Apps Integration that accepts logins only from one email domain, and a verified Drive import. Each step ends with a check so problems surface before users depend on the setup.
Create the Google Cloud project
In the Google Cloud console, create a new project dedicated to the wiki's sign-in and Drive access, and name it so administrators can recognize it later. Use an account that your organization's Google Workspace administrators have approved for this purpose. Confirm the project is selected in the console header before you change any setting in the steps that follow, because the APIs and credentials are created per project. The step is done when the project appears in the project selector and no other project is active.
Enable the People API and Drive API
In the project's API library, enable the People API and the Drive API. The XWiki Google Apps Integration needs both: the People API supports sign-in with Google accounts, and the Drive API supports importing and reimporting documents. Check the API dashboard to confirm both services show as enabled. If either is missing, the login or the Drive import will fail later, so do not skip this check.
Configure the OAuth consent screen
Set up the OAuth consent screen with the application name users will see, a support contact address and the scopes the integration requests. Choose the user type that matches your Workspace setup, and add your authorized domain. Ask your Google Workspace administrator which user type and audience settings your organization allows, since some restrictions are set at the domain level. The step is complete when the consent screen saves without validation errors and shows the scopes the integration will request.
Create OAuth client credentials with the redirect URL
Create an OAuth client ID for a web application. Add the wiki's public HTTPS address as an authorized JavaScript origin, and add the redirect URL that the Google Apps Integration documentation describes for your wiki's host, copied exactly, including the path and any trailing characters. Save the client ID and client secret in your organization's secrets store, not in a shared document. The step is done when the credential appears in the list with the correct redirect URI, and a mismatch here is the most common cause of a failed login.
Install the Google Apps Integration and enter the credentials
In XWiki, install the Google Apps Integration (Pro) extension from the XWiki Store, using a version compatible with your XWiki release, which must be 15.10 or later. Enter the client ID and client secret in the extension's administration settings, and save. Confirm that the Google sign-in option appears on the login page and that the extension's settings page shows the credentials as saved. Do not install the Active Directory application on the same instance, because it overrides the authenticator and breaks Google login.
Restrict login to one email domain
In the extension's settings, limit sign-in to your organization's email domain so that only accounts from that domain can authenticate. Confirm the exact domain value with the extension's current documentation and your Workspace administrator, since aliases and secondary domains need a deliberate decision. Save the setting and record who approved it. The step is complete when the restriction is saved and visible in the configuration.
Test a login from inside and outside the domain
Sign in from a test account in the allowed domain and confirm that the wiki creates or links the user profile and opens the session. Then attempt a login from an account outside the domain, which should be rejected with no profile created. Keep both results as dated test evidence for your change record. If the allowed account is rejected or the outside account gets in, review the domain setting and the consent screen before moving on.
Test a Drive import from a wiki page
As the test user, add an attachment or macro that imports a Google document, edit it in Google Apps, and reimport it to confirm the round trip works. Also embed a document with the drive macro on a test page. Verify the content appears correctly and that the import matches the document you expected. The sequence is complete when both the login checks and the Drive round trip pass, and the results are recorded with the XWiki and extension versions tested.
How the Drive macro and attachment round trip differ from login
Login and Drive access are separate features with separate effects. Signing in with Google uses OAuth2 only to establish who the user is. It does not, by itself, give anyone a copy of a document or a place on a wiki page. The Drive features are a different layer: they import Google documents as attachments, let users edit those attachments in Google Apps and reimport them, and embed documents with the {{drive/}} macro. A team that enables login and assumes Drive is working, or the reverse, will find that the two need their own checks.
A reader who has permission to view a page with a {{drive/}} macro sees the embedded document inside the wiki page. A page editor, however, must do more work to make that happen: they place the macro, choose the document, and confirm that the Google account the integration uses can open it. For the round trip, an editor imports the Google document, opens the attachment for editing in Google Apps, and reimports the result so the wiki copy reflects the change. Confirm with your own tests exactly which steps your editors need, since the import and reimport behavior should be verified against the version you deploy, which must be XWiki 15.10 or later.
Imported files become wiki attachments, and that changes who controls them. Once a document is imported, the file is stored in XWiki, so it takes on the storage footprint, backup scope and attachment history of any other attachment. It is also governed by the wiki's page rights, not by the sharing settings in Google Drive. Someone who can view the page may be able to download the attachment, and a file removed from Drive may remain in the wiki. Before rollout, decide which spaces may hold imported documents, check the rights on those spaces, and ask your team which copy is authoritative.
Which Google account attributes and wiki identities map to each other
This table compares each Google account attribute and Drive object with the XWiki identity, profile or page right it becomes. Read it before enabling login so you can confirm which fields populate a profile and which ownership rules apply to imported documents. The main takeaway is that the email domain check and the Drive file owner decide who gets in and who can change documents, so both need checking in a test instance first.
| Google attribute or object | XWiki counterpart | What to confirm in the connector documentation |
|---|---|---|
| Google account email address | Login identifier used to match or create the XWiki user | Whether the email is the matching key, and whether an existing XWiki account with the same email is linked or duplicated |
| Google account subject identifier | Stable key linking the Google account to one XWiki user | Whether the connector stores a stable Google ID or relies on the email, which can change |
| Workspace email domain | Allowed login domain set in the connector configuration | How the domain restriction is set, and whether it applies to first login, every login or both |
| Given name and family name | First name and last name fields on the XWiki user profile | Whether these fields populate on first login and whether later changes in Google update the profile |
| Profile picture | Avatar on the XWiki user profile, if supported | Whether the picture is copied, linked or ignored by the connector version you install |
| Google Drive file owner | Owner of the imported attachment is the XWiki user who imported it, not the Drive owner | Who owns the Google document after import, and whether reimport changes the attachment author or history |
| Google Drive sharing permissions | No automatic copy into XWiki page rights | Whether Drive sharing is ever read by XWiki, and which wiki rights still control who views or edits the page |
| Imported Google document (attachment) | Attachment on the wiki page, governed by page rights and attachment rights | Whether attachment rights can be set separately from page rights and who can trigger reimport |
Securing Google login and Drive access in XWiki
Google login and Drive access both reach into company accounts, so the settings that govern them need to be decided before users arrive. The cards below cover domain limits, secret handling, scope and macro permissions, consent screen audience, and inherited page rights. Review each one again after every XWiki upgrade, and run the whole site over HTTPS.
Limit login to the company domain
Restrict the Google Apps Integration so that only accounts from your company email domain can sign in. Without this limit, any Google account that passes the consent screen may be able to create or use a login on your wiki. Test with an account from another domain and confirm it is refused before rollout. Also confirm which accounts can change this setting after go-live, since it is a single point of control for who can reach the wiki.
Keep the client secret out of pages
The OAuth client secret is a credential that lets the integration act for your Google project. Store it only in the XWiki configuration that the administrator controls, not in wiki pages, page attachments, scripts or macros that regular editors can read. Check that page exports, XAR packages and backups do not expose it in plain text, and rotate the secret in Google Cloud if you suspect it has been copied.
Restrict Drive scopes to the feature
Request only the Google API scopes the integration needs for login, the People API and the Drive access used for importing and reimporting documents. Review the scopes listed on the OAuth consent screen and compare them with what the feature actually calls. Broader Drive access than needed means a compromised session or token reaches more of your staff's documents than the wiki requires.
Control who can insert the drive macro
The drive macro embeds Google documents into pages, so anyone who can edit a page can point it at a file the signed-in user can open. Decide which groups may use the macro, review existing pages for embeds of sensitive documents, and treat macro rights as a content decision, not only a formatting one. Check the rights on script and programming rights in your instance, since those control which macros and scripts run.
Manage consent screen audience and test users
A Google OAuth consent screen set to external audience accepts accounts outside your organization, while the testing status limits sign-in to listed test users and expires their access. Decide the audience for your organization, move the app to production only when the domain limit is tested, and remove test users you no longer need. Confirm the publishing status and the support contact in the consent screen with the team that owns the Google project.
Inherit page rights on imported files
Attachments imported from Google Drive or reimported after editing inherit the rights of the page that holds them, not the rights of the Google file owner. Anyone who can view the page can usually view the attachment, even if the original Drive file was private. Set page rights before importing sensitive documents, review pages that hold imports, and confirm that reimports do not change access on the wiki side.
Common failures when Google login or Drive stops working
This table lists the failures most often seen when Google sign-in or Drive features break in XWiki, with the likely cause, a check to run and the fix for each. Work through the rows in order, since the Google Cloud settings and the installed authenticators are usually the first things to confirm.
| Failure | Likely cause | Check | Fix |
|---|---|---|---|
| Redirect URI mismatch error at Google sign-in | The authorized redirect URI in the Google OAuth client does not match the URL users reach XWiki on, including scheme, host and path. | Compare the redirect URI in the Google Cloud client with the public XWiki address, including https and any context path. | Add the exact callback URI to the OAuth client and save. Retest in a private browser window. |
| Only test users can sign in | The OAuth consent screen is still in testing mode, so accounts not listed as test users are refused. | Open the consent screen settings in Google Cloud and check the publishing status and test user list. | Publish the consent screen for your intended users, or add the accounts that need access while you confirm the setup. |
| Login or Drive calls return access errors | The People API or Drive API is not enabled in the Google Cloud project that owns the client credentials. | Confirm both APIs show as enabled in the same project as the OAuth client ID. | Enable the People API and Drive API in that project, then wait for the change to take effect before retesting. |
| Accounts outside the company domain can sign in | The domain restriction is not configured in the Google Apps Integration settings, so any Google account is accepted. | Review the login settings for the allowed email domain and test with an account from another domain. | Set the allowed domain in the extension configuration and test that an outside account is refused. |
| Google login disappears after installing the Active Directory application | The Active Directory application overrides the authenticator, so XWiki no longer uses the Google login path. | Check the installed extensions list and the configured authenticator after the Active Directory application was added. | Choose one authenticator for the instance, or plan an approach that keeps both sign-in paths working before installing the Active Directory application. |
| Drive import or embed fails after an upgrade | The XWiki version is below 15.10, which is the minimum supported by the Google Apps Integration (Pro). | Check the XWiki version under administration and compare it with the minimum in the extension documentation. | Upgrade XWiki to 15.10 or later first, then reinstall or update the extension and retest the import and the drive macro. |
| Sign-in works but Drive documents do not appear | The Google account has not granted the Drive scope during consent, or the user is viewing a file they cannot access in Google. | Ask the user to revoke the app in their Google account settings and sign in again, then open the file in Google Drive directly. | Ask the user to accept the requested permissions, and confirm file sharing in Google Drive before debugging the wiki. |
Why installing the Active Directory application breaks Google login
The Active Directory application overrides the XWiki authenticator, so when it is installed alongside the Google Apps Integration, Google sign-in stops working. XWiki allows one authenticator to handle login for the instance, and the Active Directory application takes that role. Before any change, decide which identity source will sign staff in: Google accounts, Active Directory, or a single OpenID Connect or SAML path that serves both. If your organization needs Google login and directory-backed accounts at the same time, plan that combination as a design decision rather than as a side effect of installing a second extension. The Active Directory LDAP and Microsoft Entra ID pages in this group cover the alternatives for directory-based sign-in and show how each one fits with Google accounts.
Sequence authenticator changes in a staging copy of the instance, not in production. Record the current extension list, the authenticator configuration and the Google project settings, including the OAuth client ID and the allowed email domain, so you can restore them. Install or remove one authentication extension at a time, restart the instance as the extension documentation requires, and confirm which authenticator is active before continuing. Confirm with the XWiki Store documentation for your version that the Google Apps Integration requirement of XWiki 15.10 or later is met before you change anything.
After any authentication extension is added or removed, test the full login path with real accounts from each group: a Google user from the allowed domain, a user from a different domain who should be refused, a directory user if one is expected, and an administrator account. Check that Drive macros and attachment import still work for a signed-in user, that logout and session expiry behave as expected, and that the access logs show the expected authenticator. Keep an administrator account that uses a known local login so you can recover if a change locks out the Google path. Write the results into your change record before you approve the change.
Questions buyers ask before enabling Google login in XWiki
What drives the cost of enabling Google login in XWiki?
The cost comes from four parts: the XWiki Google Apps Integration itself, Google Cloud administration time, testing, and the hosting model. The Google Apps Integration is an XWiki Pro extension, so it sits under a Pro subscription, and the XWiki SAS pricing page states that cloud and on-premises pricing is the same. Subscription tiers are set by user count: Starter covers up to 25 users and is XWiki Cloud only, Basic covers up to 1,000 users, Business up to 10,000 and Enterprise is unlimited. Google Cloud project setup, OAuth consent screen configuration and client credentials take administrator time that recurs whenever credentials or domain rules change. Ask any partner for a written quote that separates the subscription, the Google-side work, the XWiki-side work and the test cycle. Ask XWiki SAS for the current tier that matches your user count.
How long does Google login setup take?
The duration depends mostly on how quickly your Google Workspace administrator approves the project, consent screen and client credentials, not on the XWiki work itself. The integration needs a Google project with the People API and Drive API enabled, an OAuth consent screen and client credentials. If your Workspace policy requires an approval queue for new API projects or OAuth clients, that queue sets the start date for everything else. Before you commit to a schedule, confirm with your Google Workspace administrator which approvals apply to your domain, who signs off on the consent screen, and whether the external or internal user type applies to your organization. A written scope should state which steps depend on that approval.
What does the work need from our team?
You need three things in place before the work starts: an administrator for Google Workspace, an administrator for XWiki, and a decision about the login domain. The Google administrator creates the project, enables the APIs, configures the consent screen and issues the client credentials. The XWiki administrator installs the extension on a supported version, which is XWiki 15.10 or later for the Google Apps Integration, and sets the client values. You also need a small test group of staff accounts that cover at least one admin and one ordinary user, plus a decision on whether login is limited to one email domain. Confirm these roles early, because a missing approver is the most common reason the schedule slips.
Can our own team set up Google login without outside help?
A capable internal team can do the work alone if it has access to both the Google Cloud console and the XWiki server, and if someone can test and roll back changes. The steps are documented in the XWiki Store extension page, and the hard parts are administrative rather than technical: approvals, consent screen choices and domain restrictions. Teams often underestimate the test cycle and the conflict check with other authenticators. If you already run another authenticator, such as the Active Directory application, check it first, because installing that application breaks Google login by overriding the authenticator. An outside partner adds value mainly when the Google and XWiki sides are owned by different teams, or when you need a written test plan and evidence for a review.
Does the setup change if our wiki runs in XWiki Cloud instead of on our own servers?
The Google-side setup stays the same, but the hosting model changes who can change the XWiki configuration and extension versions. XWiki SAS offers XWiki Cloud hosting on ISO 27001 certified infrastructure, and it offers on-premises support for self-hosted instances. Starter subscriptions are XWiki Cloud only, so confirm the hosting model before you choose a tier. In a self-hosted deployment, your team controls the Tomcat process, the database and the reverse proxy, which affects where HTTPS terminates and how redirect URLs are set. Ask XWiki SAS or your provider which settings you can change in their hosting model before you finalize the scope.
How do XWiki upgrades affect the Google Apps Integration?
An XWiki upgrade can change the compatibility of the extension, so each upgrade needs a regression test of Google login and the Drive macro. The integration requires XWiki 15.10 or later, so a planned move to a newer line must keep that minimum in mind. XWiki publishes stable, long term support and intermediate LTS lines, and the official Docker image tags at the time of research were 18.8.0 for stable, 17.10.14 for LTS and 18.4.7 for the intermediate LTS. Choose a line that your upgrade policy supports, then check the extension compatibility for that line before you upgrade. Ask whoever supports your instance to include the Google login test in every upgrade checklist, and keep the Google client settings documented so they can be reapplied if an upgrade resets them.
What breaks Google login after it is working?
The most common cause is another authenticator taking over login. Installing the Active Directory application overrides the authenticator and breaks Google login, so check the authenticator configuration after any extension change. Other causes to check are a changed consent screen, expired or rotated client credentials, a redirect URL that no longer matches the public address of the wiki, and a domain restriction that excludes a group of staff. Keep a short runbook that lists the Google project, the client identifier, the redirect address and the allowed domain, so the on-call administrator can compare them against the live configuration. Test login with an admin account and a standard user account after every change.
Does enabling Google login meet our security or compliance requirements?
Google login does not by itself satisfy a security or compliance requirement, and DeployOpen does not issue audit reports or certifications. What it does is move sign-in to an identity provider your organization already governs, which you then document as part of your access controls. Your compliance team should confirm which control identifiers apply to your framework, how domain restriction and account lifecycle are evidenced, and whether an independent auditor needs screenshots, configuration exports or test records. Keep the evidence from the test cycle and the domain restriction settings, because those are what an assessor will ask to see.
How DeployOpen scopes and delivers Google integration work
DeployOpen starts Google integration work with a written, fixed scope that names each deliverable before anything is configured. For this integration, that scope should list the Google Cloud project, the OAuth consent screen and client credentials, the login domain restriction, the Drive behavior staff will rely on, and the documentation handover. The XWiki side of the work runs in infrastructure you control, so the Tomcat host, the XWiki instance and the Google connection are all planned and changed in your environment, not in a shared service. Ask for the scope in writing and check that each item names an owner, a test and an acceptance condition.
Delivery follows that scope in an order that keeps risk visible. DeployOpen configures the Google project and XWiki Google Apps Integration on a non-production instance first, then tests login with an account inside the allowed domain and with one outside it, and checks that the Drive macro and attachment import and reimport behave as agreed. Authenticator conflicts are checked before go-live, including whether any Active Directory application is installed, because it overrides the authenticator and breaks Google login. Test results, configuration values and the rollback steps are documented so your team can repeat the setup or audit it later. Confirm with DeployOpen which test accounts, domains and XWiki versions the acceptance tests will use.
Google products, OAuth rules and XWiki extension versions change over time, so ask whether ongoing support is part of the quote. DeployOpen offers retainers for upgrades and continuous testing, which can cover re-verifying login and Drive behavior after an XWiki or Google change. Whether a retainer fits depends on how often your instance and Google settings change, so agree on the review cadence and the change process before go-live rather than after the first incident.

