Custom Enterprise MCP Integration Guide
Overview
Custom enterprise integration is intended for enterprise-built AI assistants and other platforms that support Streamable HTTP MCP. The platform passes the current member's unique identifier with each request. GuanMCP matches it to the corresponding Guandata BI user property, and queries follow the matched BI user's permissions.
Configure custom enterprise MCP access
Prerequisites
Before you begin, confirm:
- The GuanMCP service has
MCP_ENTRYPOINT_TOKENandBI_APP_TOKENconfigured, and the outbound IP address it uses to call BI is included in the BI Public API allowlist. See Step 2: Complete the connection. - The enterprise AI platform can dynamically pass a stable, unique identifier for the currently signed-in member, such as a unified identity account or employee number.
- The same identifier is stored in a Guandata BI user property and uniquely matches one enabled BI user.
Step 1: Define user mapping
Choose the external business system's user account ID supplied by the platform, and maintain the same value in a custom Guandata BI user property. This example uses external_account_id as both the custom property's display name and the identity header name.
external_account_id is only an example of an external business system account ID. It is not a built-in GuanMCP property or a fixed header name. The Agent platform or trusted gateway defines the identity header name, which must match the value of bi-user-property-header.
| Item | Example | Description |
|---|---|---|
| Identity header | external_account_id | Carries the current user's account ID in the external business system. |
| Guandata user property key | 11111111-2222-4333-8444-555555555555 | Internal key of the BI custom user property; configured as a fixed value. |
| Property value | external_user_001 | Current user's account ID in the external business system; changes with the signed-in user. |
Maintain custom user properties through Account Sync
Use Account Sync to synchronize external account IDs to custom BI user properties in bulk:
- In Admin Center > User Management > Manage User Properties, create a custom property such as
external_account_idto store the external account ID. - Prepare an Account Dataset containing the external account ID. Edit User Sync in Account Sync, and map the custom property under Other Information to the source dataset's account ID field.
- Save and click Manual Update, or select Daily in Update Settings to synchronize automatically. After synchronization, check the user details to confirm that the property value matches the external account ID and uniquely identifies one enabled user.
For a few users, modify user information directly and fill in the custom property.
Find the custom user property's internal key
- Open the target user in Admin Center > User Management > Users, and confirm that
external_account_idcontains that user's external business system account ID. - Open the browser developer tools' Network panel, refresh or reopen the user details, and find the
GET /api/user/{uId}request. - Find the property in
userPropertiesin the response. The object's key is the property's internal key, and its value is the current user's external account ID. For example:
{
"userProperties": {
"11111111-2222-4333-8444-555555555555": "external_user_001"
}
}
Account IDs and UUIDs are examples. Configure the complete internal key, even when an illustration abbreviates it. Replace the example UUID with the actual internal key of your BI custom property; do not use its display name external_account_id or the current user's account value.
If several custom properties exist, match the property name alias and internal key returned by /api/user/properties. The uId in /api/user/{uId} locates the BI user; it is not the external account ID passed in this example.
Step 2: Configure GuanMCP
Configure the entry credential and BI token on the GuanMCP server:
MCP_ENTRYPOINT_TOKEN=<MCP service credential>
BI_APP_TOKEN=<BI default token injected through a server-side Secret>
Step 3: Add GuanMCP to the enterprise platform
- Add a Streamable HTTP MCP service and enter the complete URL, such as
https://mcp.company.com/mcp. - Configure the fixed header
Authorization: Bearer <MCP service credential>. - Configure
bi-user-property-header: external_account_idandbi-user-property-key: 11111111-2222-4333-8444-555555555555in the platform's custom headers or trusted gateway. - Have the platform dynamically populate
external_account_idfor the currently signed-in member. Send both mapping headers and the identity value with every request.
Minimum request example:
POST https://mcp.company.com/mcp
Authorization: Bearer <MCP service credential>
bi-user-property-header: external_account_id
bi-user-property-key: 11111111-2222-4333-8444-555555555555
external_account_id: <current user's external business system account ID>
bi-user-property-header and bi-user-property-key are fixed settings. The platform dynamically sets external_account_id according to the signed-in user. Do not put a username variable in bi-user-property-key or omit the external_account_id header that carries the actual identity value.
Have a trusted platform or gateway inject mapping and identity headers and dynamically pass the current session user's identity. Store BI_APP_TOKEN only on the GuanMCP server.
Step 4: Verify access
- As a test member with ordinary permissions, ask “Show me the datasets I can access.”
- Ask the same question as a test member with higher permissions, and compare the returned resources with each member's Guandata BI permissions.
- Verify that the identity header in the two requests contains each member's own identifier.
User mapping and permission control work when both members receive results consistent with their Guandata BI permissions.
Troubleshooting
User identity is missing
Confirm that the enterprise AI platform dynamically sends the current member's identity in the header named by bi-user-property-header. Specifying a header name does not make the upstream platform generate an identifier.
User mapping fails
Compare the request header value with the corresponding BI user property value. When maintaining the property through Account Sync, confirm that synchronization succeeded. The values must match exactly and identify one enabled BI user. Check the property's internal key as described in Step 1: Define user mapping.
Different members receive identical results
Verify that the identity header changes with the current member and that the two users have different Guandata BI permissions. Do not use one fixed BI account for all members.
For additional issues, see GuanMCP troubleshooting.