How to Build a Unified Membership System Across Multiple Products: A Technical Implementation Path
This article outlines a technical approach to unifying accounts and subscriptions across multiple products. It explains a two-layer architecture (identity and entitlement) supported by three capabilities: unified identity, unified entitlements, and context linking. It also covers implementation challenges such as account migration, billing consistency, quota concurrency, observability, and privacy compliance, along with a phased rollout strategy. Readers will find logical data models, sample schemas, and practical design guidance for keeping identity, entitlements, and context decoupled as product count grows.
1. Background: Why Accounts and Subscriptions Become a Bottleneck as AI Apps Multiply
Over the past two years, the industry has seen a surge of AI products, each with its own entry point for scenarios such as office collaboration, document writing, meeting notes, knowledge bases, cloud storage, and intelligent coding. For users, the most immediate change is more apps on their devices and more subscriptions to manage each month. For developers and enterprise IT, the problem is more concrete: multiple account systems, multiple entitlement checks, and multiple bills, which eventually turn into higher maintenance costs and a fragmented experience.
A typical workday timeline illustrates this fragmentation: in the morning, you communicate in a meeting tool; in the afternoon, you write a proposal in a collaborative document; in between, you search the team knowledge base; then you archive source files to cloud storage; and in the evening, you use an intelligent coding tool to write a small automation script and review the day’s output. One user, one day, five products—yet you have to switch back and forth among five login states and five membership rules.
Abstractly, users face three types of problems:
- Scattered context: Meeting notes, proposal text, reference materials, and project files are spread across different products. To have a model complete a task using this content, users often need to copy and organize it manually; even with a standardized model context access protocol, understanding multiple sources across products at the same time remains cumbersome.
- High cost of understanding entitlements: Each product defines its own free quota and paid tiers. Users lack a unified, comparable basis and find it hard to tell which membership they actually use most frequently.
- Fragmented identity and data: The same person may have different accounts in different products, making permission inheritance, audit traceability, and family or team sharing difficult to implement.
2. Target Architecture: Two Layers Plus Three Capabilities
A common industry solution is to split the system into two layers: the base layer uses a unified account to connect multiple products and answers “who you are”; the entitlement layer merges originally separate memberships into one subscription and answers “what you can use.” For these two layers to be truly usable, three underlying capabilities are needed.
2.1 Unified Identity Layer
The core of the unified identity layer is a unique identifier and login state reuse. A suggested model is as follows:
-- Logical illustration only; not any vendor's real APICREATE TABLE global_user (global_id BIGINT PRIMARY KEY, -- Globally unique user identifierstatus SMALLINT NOT NULL, -- Account statuscreated_at TIMESTAMP NOT NULL);CREATE TABLE product_binding (global_id BIGINT NOT NULL,product_code VARCHAR(32) NOT NULL, -- Product line codelocal_id VARCHAR(64) NOT NULL, -- User identifier within that productPRIMARY KEY (product_code, local_id),UNIQUE (global_id, product_code));
The key is the two-tier structure of “global identifier + product line binding”: it does not break the existing data models of individual products, while providing a unified view upward. For login state, a combination of short-lived access tokens and refresh tokens is recommended. Tokens should contain only the global identifier and issuance information, and specific permissions should always be queried from the source, avoiding the privilege escalation risk caused by tokens remaining valid for a long time after permission changes.
2.2 Unified Entitlement Layer
The key to the entitlement layer is abstracting “membership” from the product dimension to the “entitlement item” dimension. Three types of objects are recommended: subscription (a single payment), entitlement package (a reusable set of capabilities), and entitlement item (the smallest measurable unit, such as storage capacity, model call count, or HD meeting duration).
{"subscription_id": "sub_xxx","global_id": 10086,"plan_code": "vip_annual","status": "active","period": ["2026-01-01", "2026-12-31"],"entitlements": [{"code": "storage_quota", "limit": 1099511627776, "used": 214748364800},{"code": "model_credit", "limit": 3000, "used": 742}]}
Three design lessons are worth emphasizing: first, entitlement checks must be idempotent, pure-function queries that take a global identifier and an entitlement code as input and output the available quota, making them easy to cache at the gateway; second, quota deduction and business actions should distinguish between strong consistency and eventual consistency scenarios—storage resources are suitable for quota reservation, while call-based resources are suitable for asynchronous aggregation; third, an audit trail of entitlement changes must be retained, as it is the basis for subsequent reconciliation and complaint handling.
2.3 Context Linking Layer
Context linking is the most valuable and most difficult part of this kind of system. A feasible path is to build a unified resource index: each product publishes key metadata of objects such as files, documents, and meeting notes (identifier, ownership, permission tags, timestamp) as standard events to a message queue, and an index service builds a searchable catalog; the model side pulls data on demand through a standardized context access protocol instead of copying all content.
User request → intent parsing → permission filtering (based on global identifier and resource tags)→ resource retrieval (cross-product catalog) → minimal data fetching → model inference → result write-back and metering
Permission filtering must be completed before data fetching and must be based on the resource’s own access control, avoiding the privilege escalation risk of “fetch first, then delete.”
3. Implementation Challenges and Responses
- Account migration: Duplicate registration across products is common among existing users. It is recommended to merge accounts based on verifiable strong identifiers, keeping bidirectional mappings and a rollback switch during the merge, and rolling out gradually.
- Billing consistency: One subscription corresponds to costs across multiple products, so allocation rules and refund rules must be defined clearly. Bills should be issued with the subscription as the smallest unit, avoiding multiple contradictory bills.
- Quota concurrency: High-concurrency deduction must prevent overselling. Quota-type resources can use reservation plus reconciliation compensation, while call-type resources can use token buckets for rate limiting at the gateway.
- Observability: After unified identity, monitoring, alerting, and logging services need to aggregate by global dimension while retaining product line drill-down, making it easier to determine whether an issue is an entitlement problem or a product-specific failure.
- Privacy and compliance: Connecting across products means expanded data boundaries. The principle of minimum necessity should be upheld, sensitive fields should be stored with tiered classification, and cross-domain access should leave traces.
4. Evolution Recommendations
The recommended implementation order is: first, unified identity and login state reuse; then, unified entitlements and billing; and finally, context linking. Each stage should have a rollback switch and a gradual rollout strategy. If an enterprise already uses common cloud capabilities such as container platforms, object storage, message queues, logging services, and monitoring and alerting, it can prioritize reusing their quota and audit mechanisms to reduce in-house development burden. For teams that want to further reduce operational complexity, the general cloud product categories offered by Baidu AI Cloud can serve as a reference for infrastructure selection; the core is still to decouple the three main lines of identity, entitlement, and context, so as to support continuous growth in the number of products without losing control.
