Personal access tokens for scripts and integrations in OX App Suite: when teams need them
A scoped, expiring bearer token lets a script, a fixed-header integration or an MCP client call OX App Suite on behalf of one user without running an interactive OAuth login. Teams reach for this when a job runs unattended, when a client can only send a static header, or when a tool has no browser to complete a redirect. The token is minted by a user, carries only the permissions chosen at creation, and stops working when its lifetime ends. Whether the operator offers this feature at all is a decision for the platform team, because it widens the set of credentials that can reach mail, calendar, contacts and Drive outside the normal sign-in path.
Before designing around tokens, confirm three things against the OX App Suite release the customer runs: whether the feature exists in that release, which token formats and scopes it supports, and which administrative controls exist to enable, restrict, expire or revoke tokens across users. The supplied product facts do not describe this capability directly, so none of these should be assumed. The OX App Suite OpenID Connect documentation covers the interactive login path, which is the baseline any token design has to be measured against. Ask Open-Xchange how tokens are stored, whether they can be listed and revoked by an administrator, and whether they are logged.
Plan the review as a governance question rather than a feature check. List which scripts and clients would hold tokens, which accounts they would act as, and whether those accounts have MFA and the access they need. Decide maximum lifetimes, who may create tokens, and how a leaver's tokens are revoked as part of the offboarding process. If the release cannot meet those requirements, a narrower option such as separate service accounts, or application passwords for specific sync clients, may fit better. Record the decision with the security team before any integration depends on a token.
Token options and which one fits each integration
This table compares four ways a script, integration or MCP client can authenticate to OX App Suite: browser login, personal access tokens, application passwords and provisioning accounts. Read each row by the caller it fits, then confirm the listed points in your target release before you choose. The main takeaway is that personal access tokens serve non-browser callers that cannot run an OAuth flow, but only after you verify their scope, expiry and revocation behavior in your version.
| Option | Caller it fits | Issuance and lifetime | Revocation and what to confirm |
|---|---|---|---|
| Interactive OIDC or SAML browser session | People using the web UI; not suited to unattended scripts | Issued at browser login through your identity provider; lifetime follows provider and OX session settings | Ends at logout or provider session end. Confirm logout behavior for your release. |
| Personal access token | Scripts, fixed-header integrations and MCP clients that cannot run an OAuth flow | Minted by the user for a chosen scope and expiry, if your release offers this | Revoked by the user or an operator. Confirm scope options, maximum expiry and audit log entries. |
| Application password | CalDAV, CardDAV, Drive and mail sync clients on a single device | Created per client in user settings; intended for sync clients, not general API use | Revoked per device. Confirm it cannot call the HTTP API or admin functions in your release. |
| Service account or provisioning interface | Automated joiner, mover and leaver flows from an identity provider or HR system | Created by operators under a technical identity with administrative rights | Removed by operators. Confirm least-privilege rights and your credential rotation procedure. |
How a bearer token reaches the middleware in a request flow
The flow starts in the web UI, where a user who has already signed in through SSO and passed MFA mints a scoped, expiring token. The client environment stores that token and sends it with each API request through the ingress, which sits on the boundary of the customer's cluster. The middleware checks the token's scope and expiry and writes an audit record. Confirm for your target release how token validation is performed and where the audit record is stored.
Token minting, storage, per-request use and audit across the trust boundary.
How personal access tokens differ from OIDC sessions and application passwords
Personal access tokens serve a different caller than a browser session. OX App Suite supports single sign-on through OpenID Connect, and Open-Xchange documents SAML login configuration for the middleware, so people signing in to the web UI normally authenticate at an identity provider and receive a session that the browser holds. That session is built for an interactive user: it is tied to a browser, it renews through the login flow, and it assumes someone can complete a redirect, enter a second factor when prompted, or log out. A cron job, a CI pipeline or a fixed-header integration cannot do any of that. It needs a credential it can present on every request without a login page, and it needs that credential to stop working on a known date. A personal access token fills that gap, but only if your team has confirmed how the token is issued, which API surfaces accept it, and whether the feature is enabled in your build, since the exact behavior should be checked against the current OX App Suite documentation before you design around it.
Application passwords sit in a different place again. The sibling topic on application passwords for sync clients covers credentials that each phone or desktop client holds for mail, CalDAV, CardDAV and Drive, and that pairing is what lets MFA-protected accounts still sync. Confirm with your own configuration which of these credentials can reach which protocols, because a token that works on a REST path is not automatically accepted by IMAP, SMTP or ManageSieve. Treat the three mechanisms as separate decisions in your access model rather than as interchangeable ways to log in.
Tokens add long-lived credentials to your estate, so scope and expiry decide the blast radius. Every token that a script holds is a bearer secret: anyone who copies it from a job log, a configuration file or a developer laptop can use it until it expires or is revoked. Before enabling the feature, ask which scopes can be granted, whether an operator can cap maximum lifetime, who may create tokens for other users, and how a revoked token is reflected in audit logs. Write down a rule for each integration, such as the minimum scope it needs and the date it must be rotated, and test revocation before the first production token is issued. Illustrative example: a reporting job that only reads calendar data should never hold a token that can send mail.
How operators enable and mint tokens safely
This sequence turns personal access tokens from a feature that exists in a release into a controlled capability: the release is confirmed, access is scoped, one integration is proven in staging, and revocation is shown to work before any user receives a token in production. Each step leaves a record that the next step depends on.
Confirm the release and token feature
Operators check the release notes for the OX App Suite version they run or plan to run and confirm that personal access tokens are included and documented for that release. Support commitment dates for the release, including whether it is a standard release or an LTS release, are checked in the same pass. Confirm any open questions about the feature with Open-Xchange support or your account contact before going further. Done when the release, its token documentation and its support end date are written into the change record.
Decide which user groups may mint tokens
The security owner and the application owner agree which user groups, if any, may create tokens. Most teams start with a narrow group, such as platform staff or named developers, and exclude shared mailboxes and service accounts from self-service minting. Record who approves exceptions and how a group membership change removes minting rights. Done when the approved group list and the exception process are signed off and stored with the change record.
Set enablement and lifetime settings
Using the configuration options the chosen release documents, the operator turns the feature on for the agreed scope and sets the maximum lifetime and any scope restrictions the release supports. Confirm exact setting names and accepted values in the release documentation rather than in community notes, and keep them in version-controlled configuration. Done when a staging environment shows the settings in effect and a configuration diff has been reviewed by a second person.
Test one token on a low-risk endpoint
In a staging context with test data only, a test user mints a token with the narrowest scope and shortest lifetime the release allows. The operator calls one read-only endpoint, such as retrieving the user's own profile, using the bearer header, and then tries the same call with an out-of-scope action to confirm it is refused. Done when the allowed call succeeds, the out-of-scope call fails and both results are logged.
Document owner and purpose for each integration
Each script or fixed-header integration that will use a token gets a record with its business owner, technical owner, purpose, scope, the account it runs under and the date its token expires. The record also names the person who revokes the token when the integration is retired or its owner leaves. Done when every planned integration has a complete record and no token is issued to an integration without one.
Verify that a revoked token is rejected
Before the first production token is issued, the operator revokes the staging test token through the method the release provides and repeats the call that succeeded earlier. The expected result is a refusal, and the operator checks that the refusal appears in the audit or application log with the revocation event. Done when the revoked token is rejected in every path that uses it and the test is recorded as passed.
Confirm audit logging before production use
The operator checks which token events the deployment records, such as creation, use and revocation, and where those records go, and confirms that the log sink is retained for the period your policy requires. Ask Open-Xchange which events are logged in the chosen release if the documentation does not state it. Done when a test mint, use and revocation each appear in the central log store and the team has a query that finds tokens by owner.
Security risks to design for before tokens go live
Personal access tokens are bearer credentials, so anyone holding one can act as its owner until it expires or is revoked. The six risks below connect at that point: a token that leaks, carries too much scope, outlives its owner, or is used where no one is watching can do the same damage as a stolen password. Check each control in your own environment before users can mint tokens.
Token theft from scripts and repositories
Scripts, CI jobs and config files are where bearer tokens usually leak, often pasted into a repository, a shell history or a chat thread. Store every token in your secrets manager and never in source control. Before go-live, confirm that your secret scanning covers the token format your deployment issues, that scripts read tokens from the environment or a vault, and that your team knows how to revoke a leaked token quickly.
Over-broad scope granted by default
A token that can read all mail and all Drive folders is a wider attack surface than most integrations need. Decide which scopes users may request, and whether any scope requires administrator approval. Default to the narrowest scope a use case needs. Verify in a test context that a token limited to one module cannot reach mail, files or settings it was not granted.
Tokens that outlive their owner
When a user leaves, their tokens may keep working unless leaver processing revokes them. A departed employee's script could keep reading mailboxes or writing files long after access was removed from the directory. Add token revocation to your leaver runbook, and test it: disable a test account, then confirm that its tokens stop authenticating. Ask Open-Xchange which revocation paths its release provides.
MCP clients acting on mail and Drive
An MCP client that holds a token can search, read and send on the owner's behalf, so a prompt injection hidden in an email or document can turn into a data action. Treat each MCP client as a delegated agent. Limit it to read-only scopes where possible, keep write and send scopes separate, and test it with a crafted message that tries to trigger an export. Review the tool permissions the client actually exposes.
Weak audit coverage of token use
If logs record only the user name, you cannot tell a person's browser session from a script using their token. Confirm that token-authenticated requests are logged with the token identifier, the client, the source address and the action. Check that those entries reach your central log platform and are retained for your required period. Without this, an incident involving a token cannot be reconstructed.
Tokens bypassing MFA intent
If your organization requires multifactor authentication for the web UI, a token minted after MFA could keep working without a second factor at every later use. Decide whether token minting itself requires a recent MFA check, and whether administrators can restrict who may mint tokens. Verify the behavior with a test account enrolled in MFA, and document the result for your access review.
Rollout choices by audience and environment
A pilot is the cheapest place to learn how tokens behave in your environment. Keep the group small, usually developers who already work with the APIs, and limit them to read-only or narrow scopes against a non-production or low-risk context. The goal is to confirm that minting, expiry, revocation and logging work as your team expects before anyone builds a production dependency on them.
- Scope: Start with read scopes for mail, calendar or contacts in a test context, and add write scopes only after the first review.
- Lifetime: Choose short expiries, for example days rather than months, so that forgotten tokens lapse on their own.
- Owner and review: Name one platform owner who approves the pilot group, keeps the list of participants and reviews token use at a fixed interval you set.
- Evidence to ask for: A written list of enabled scopes, a record of a test revocation that stopped access, and sample audit log entries showing who minted a token and when it was used.
- Exit criteria: Agree in writing what must be true before the pilot widens, such as no token outliving its planned lifetime and no scope used outside the documented purpose.
Before leaving the pilot, confirm with Open-Xchange documentation and your own tests exactly which token capabilities your release exposes, since availability depends on the version you run.
Operations teams usually need tokens for backup checks, provisioning helpers, reporting exports and housekeeping jobs. These tokens run unattended, so the risk is less about one person's session and more about a credential that sits in a scheduler, a container variable or a script repository for a long time. The rollout should treat each job as a named service identity with its own token.
- Scope: Give each job the smallest set of scopes it needs, and never share one token across several jobs.
- Lifetime: Match the expiry to the job's rotation schedule, and plan a rotation step that the job runs or that an operator performs before expiry.
- Owner and review: Record an owning team and a responsible person for every job token, and review the inventory whenever a job changes or its owner leaves.
- Storage: Confirm that tokens live in your approved secret store, not in plain text in job definitions. Ask how the token is delivered to the job at runtime.
- Evidence to ask for: An inventory of token holders, the rotation runbook, and logs showing that a revoked job token is rejected on its next call.
Ask your team to confirm how the scheduler stores and masks secrets, because a token leaked into job logs is still a valid bearer credential until it expires or is revoked.
Users connecting AI agents through MCP clients are the audience where tokens most often need to be issued to people rather than services, and where a fixed header is the only option because the client cannot run an OAuth flow. An agent acts with the user's rights, so the token scope defines what the agent can read or change. This tab deserves the strictest review because the agent may act on content it reads, including content an attacker controls.
- Scope: Offer a small set of read-oriented scopes by default, and require a documented reason before write scopes such as sending mail or changing calendar entries.
- Lifetime: Use short expiries and a simple way for users to revoke a token from the web UI when they change devices or stop using an agent.
- Owner and review: Assign a security owner for the agent program who approves the permitted clients and reviews token issuance patterns on a set schedule.
- Client controls: Confirm which MCP clients are allowed, where their configuration files store the bearer value, and whether the client can be restricted to approved endpoints.
- Evidence to ask for: A test of prompt injection against the connected agent, a demonstration that a revoked token stops agent calls, and audit records that tie agent activity to the user who minted the token.
Before approving wider use, confirm with your security team that the agent review covers tool permissions and data exposure, not only the token itself.
Limits to confirm in your environment
Personal access tokens touch authentication, authorization and audit at once, so the details matter more than the feature name. Get each answer below in writing from Open-Xchange or from the release documentation for the exact version you plan to run.
Release and package availability
Confirm that your target release of OX App Suite includes personal access tokens at all, and under which package or license terms it is delivered. A feature present in one release line may be absent from the LTS release you plan to run. Ask for the exact release name and the module or package that enables it, and record both in the design document.
- Current LTS release
- v8.47
Scope naming and enforcement
Ask how scopes are named, which operations each scope grants, and whether the middleware enforces them on every endpoint or only on some. A token limited to calendar reads should not be able to send mail. Request the scope list for your version and a test showing a denied call for each scope you intend to restrict.
Maximum lifetime and renewal
Confirm the longest lifetime a token can have, whether the value is set per token or globally, and whether a token can be renewed or must be replaced. Long-lived bearer tokens in scripts are a common source of lingering access, so the answer shapes your rotation procedure and how often integrations break.
Administrator listing and revocation
Find out whether administrators can list tokens across all users, see when each was last used, and revoke them without the user's cooperation. Without a central view, a departing employee's scripts may keep working. Ask whether revocation takes effect immediately on active sessions and whether these actions are written to the audit log.
Interaction with MFA and SSO
Confirm whether a token can be minted by a user who signed in through SSO with multifactor authentication, and whether the token bypasses MFA for the requests it makes. Also confirm what happens to existing tokens when a user is disabled in the identity provider. The answers determine whether tokens weaken the controls your SSO rollout is meant to enforce.
Coverage in module licensing
The Operations Guide notes that some modules or features may carry separate fees or limitations set in the license agreement. Ask whether personal access tokens are included in your base license or count as a separately licensed feature, and whether any usage limit applies. Get the answer in the signed license terms, not in a verbal summary.
Operations GuideAuditing token use and revoking access when people leave
An audit program for personal access tokens needs a token inventory that records, for every token, the owner, the scope, the creation date and the last time it was used. Without those four fields, a security team cannot answer the basic questions an incident responder or auditor will ask: who can reach mail and Drive through a script, which tokens have not been used in months, and which ones were issued to someone who has since changed roles. Confirm with Open-Xchange whether the token list is visible to administrators in your release, whether last-use data is recorded per token, and whether you must export it through the API or the admin tools. If the inventory cannot be produced from the product, plan a scheduled export and store it outside the mailbox platform.
Log retention is the second requirement. Token creation, token use and revocation events have to be kept long enough for your security team to search them, and they have to be stored in a system that team can query without asking the platform team to restore a backup. Decide where the middleware and proxy logs for token-bearing requests go, who holds read access, and how long they are retained against your own incident and records policies. Confirm which token events are logged at the middleware level in your version, since a request logged only at the ingress layer will not show which token issued it.
Revocation has to work during a leaver process and during an incident, not only in the user's own settings page. Connect token revocation to the same steps that disable the user's web login, and confirm whether provisioning from your identity provider removes or disables personal access tokens when an account is deprovisioned. Do not assume it does. Test a leaver scenario in a non-production context with a dummy account and a live token, then record who can revoke tokens on behalf of another user and how fast that happens. Keep a written runbook entry that names the operator role responsible for mass revocation after a suspected compromise.
Questions teams ask before enabling personal access tokens
What does a personal access token project cost and what drives the effort?
Cost follows the written scope, and the token feature is only one part of it. Your organization pays for the work in the agreed scope (design, configuration, testing, documentation and handover) and for any staff time it contributes. The main drivers are the number of integrations (each script, fixed-header integration or MCP client needs its own scope, owner and test), the number of user groups allowed to mint tokens, your audit requirements, and whether your target release already provides the feature or needs custom work. Ask for a quote that separates one-time work from recurring items such as upgrades, token reviews or a support retainer, and that lists any licensing or separate fees for modules, which the OX App Suite Operations Guide notes may apply.
How long does a personal access token pilot take?
The pilot length depends on a few decisions, and no fixed duration applies to every environment. The timeline is set by the release you run or plan to run, whether your identity provider and user groups are ready, how many integrations the pilot covers, how long your security sign-off takes, and when your change windows fall on the Kubernetes cluster. A narrow pilot with one user group and one or two integrations is easier to approve and test than a full rollout. Ask the partner for a written plan with milestones, the entry criteria for each stage, and a list of what the pilot excludes, so you can compare it with your own internal estimate.
What must our team provide before a token pilot starts?
Before work starts, your team should provide four or five inputs that drive the design:
- The target OX App Suite v8 release. Check it against the Open-Xchange support commitment, since v8.47 is the current LTS and standard releases have a shorter support window.
- Your identity provider and how users sign in today, such as OpenID Connect, SAML or another method.
- A named owner for each integration who approves its scopes and accepts its failure modes.
- Written security sign-off on token policy, including maximum lifetime, allowed scopes and where tokens may be stored.
- A non-production environment that matches production closely enough to test revocation and logging.
Can our own platform team enable personal access tokens without a partner?
A capable team can do it alone if it already runs OX App Suite v8 on Kubernetes, has Helm experience, can administer the application's configuration, and has people who can write and test the integrations. The gaps usually appear in three places: confirming the feature's behavior in your exact release, testing scope limits and revocation paths from the attacker's point of view, and producing evidence for an audit. A fixed-scope engagement puts those tasks into a written plan with deliverables and a retest. Decide based on whether your team has the time to do that testing before the first integration goes live, not on whether the feature can be switched on.
Do personal access tokens replace single sign-on and multifactor authentication?
No. Tokens do not replace single sign-on or multifactor authentication, and they should sit beside them. Single sign-on and MFA protect people signing in interactively through the web UI, while a token is a bearer credential for a script or client that cannot run an OAuth flow. Anyone who holds a token can act as its user, so it needs the same care as a password: short expiry, the narrowest scopes that work, storage in a secrets manager and a named owner. Confirm with your release how token use interacts with MFA and login policy, because multifactor setups may restrict some sign-in paths, and test that before you rely on either control.
How do we revoke personal access tokens when someone leaves?
Revocation depends on what your release supports, so confirm it before you enable tokens. Check whether administrators can list tokens per user and revoke them, whether disabling or removing an account invalidates its tokens, whether tokens expire automatically, and how quickly an active integration stops working. Then connect the answers to your leaver process in the identity provider and HR system. Integrations that run for a long time should not depend on one person's token, so reassign ownership or move them to a dedicated service account before that person leaves. Test the full path with a departed test user so you know the token fails in practice.
What audit evidence should we expect from token activity?
Ask the partner and the vendor documentation which events the release records for tokens: creation, scope granted, each use, revocation and failed attempts. Then confirm where those logs go, how long they are kept and whether they can be forwarded to your security monitoring tools. Your auditors will likely want a sample of token records, the approval for each token policy setting, and proof that revocation worked in a test. Compliance-related work on the application is prepared and documented with you, but independent auditors and certification bodies issue any audit report or attestation, so agree early on which evidence you need from the project.
How DeployOpen scopes and delivers token and access work
DeployOpen plans, builds, tests and documents personal access token setups for OX App Suite inside your own infrastructure, so token issuance, scopes and audit logging match your access policy. Each engagement starts from a written scope that names the users, integrations and clients allowed to hold tokens.
How we scope
- We confirm which scripts, fixed-header integrations and MCP clients need tokens and which of them can run an OAuth flow instead.
- The written scope lists token lifetimes, permitted scopes, who may mint tokens and which admin controls must exist before rollout.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts, and ongoing support available as a retainer.
How we build
- We enable and configure token issuance in your OX App Suite v8 deployment on Kubernetes, with settings reviewed against your identity model.
- We test expiry, revocation, scope limits and header handling with each integration, including a negative test for tokens used outside their scope.
- We check that token creation and use appear in audit logs that your security team can query and retain.
How we hand over
- You receive a runbook covering who may mint tokens, how to revoke them and how to rotate credentials used by scripts.
- Each integration gets a short guide listing its token scope, expiry setting and the header format it expects.
- We document the audit evidence your compliance team can request, with the fields and retention you agreed during scoping.
How we support
- We review token settings again when you upgrade OX App Suite, since release notes may change defaults or add scopes.
- We rerun access tests after new integrations or MCP clients are approved, and report any gap with a fix and a retest.
- Ask your quote to name the retainer scope, including which upgrade reviews and retests it covers, before work starts.

