Cross-Workspace Authorization¶
Guance isolates data by workspace, ensuring that data in each workspace is independent and secure. It also supports cross-workspace data authorization, allowing data from multiple workspaces to be authorized to the current workspace for querying and display through scenario dashboards, views, and other chart components. After configuring data authorization, you can view data from all authorized workspaces in a single workspace.
In addition, the platform supports unified cross-workspace queries within the same site. After this feature is enabled, you can directly query and aggregate data from all other workspaces on the same site within the current workspace, without configuring data authorization one by one.
Note
Querying multiple sites at the same time is not supported.
Grant To¶
Go to Management > Cross-Workspace Authorization > Grant To. This page is used to manage data authorization relationships between the current workspace and other workspaces. The page provides two entry points:
Add Authorization¶
If you want to authorize other workspaces to view data in the current workspace, perform the following steps:
- Click Add Authorization.
-
Select the authorization scope.
- Current site authorization: Authorize data for other workspaces on the same site. The authorization takes effect immediately after confirmation.
- Cross-site authorization: Authorize data for workspaces on different sites. An authorization package must be generated and imported by the recipient before it takes effect.
-
Enter the Workspace ID of the recipient.
- Define the data scope.
- Confirm to generate the authorization package.
How to Get the Workspace ID
Go to Management > Workspace Settings > Workspace ID, click Copy, and you will get the Workspace ID.
-
If you choose current site authorization: After you click Confirm, the authorization takes effect immediately, and the recipient can see it in the Viewable list of their workspace.
-
If you choose cross-site authorization: Click Generate Authorization Package, and the system generates a
meta jsonauthorization package file. Provide this file to the recipient. The authorization takes effect only after the recipient imports and successfully authenticates it.
Data Scope¶
Includes Synthetic Monitoring, Cloud Billing, Logs, APM, Metrics, Basic Objects, Resource Catalog, Events, RUM, Network, Profiling, and LLM. Multiple selections are supported.
-
Log Index: If the selected data scope includes log data (that is, "All" or "Logs" is selected), you can continue to select the indexes to authorize for viewing.
- The indexes here include the default index and all log indexes. External indexes are not included.
-
When "Metrics" is selected as the data scope, you can refine the metrics authorization scope:
- Default option: The system displays "All". If the input box remains empty, all measurements in the current workspace are authorized.
- Custom filter: You can manually enter tag conditions for filtering. Separate multiple tag conditions with English commas in the format
key:value. For example, if you enterhost:server, env:prod, only metrics data matching these tag conditions is authorized.
Import Authorization Package¶
Click Import Authorization Package and upload the meta json authorization package file provided by the authorizer.
- Only
.jsonfiles are supported. - After import, the system automatically identifies the authorizer's site, workspace, and data scope.
After successful authentication, the current workspace can see the authorization record in the Viewable list.
Viewable¶
Go to Management > Cross-Workspace Authorization > Viewable. This page displays records of data permissions that other workspaces have authorized to the current workspace.
- If the other party grants authorization directly through Current Site Authorization, the record automatically appears in the list with the status Effective.
- If the other party generates an authorization package through Cross-Site Authorization, you need to click Import Authorization Package and upload the
.jsonauthorization package file they provide. After successful import and authentication, the record appears in the list and its status changes to Effective.
Understand Authorization Status¶
In the Grant To or Viewable list, each authorization record displays its current status:
| Status | Description |
|---|---|
| Pending Import | The authorization package has been generated, but the authorized workspace has not imported it or authentication has not been completed. |
| Effective | The authorized workspace has imported the authorization package and authentication succeeded. The authorization is now effective. |
| Invalid | The authorization is unavailable, including because it was deleted, authentication failed, or the backend determined it is unavailable. |
Manage Authorization¶
In the Grant To or Viewable list, you can perform the following operations:
- Filter the list by site.
- Search by workspace name or ID to locate a record.
- Delete a workspace's data authorization.
- Edit an authorization rule again using the edit button.
- When adding or deleting data authorization, the system generates audit events and sends email notifications to the owner and administrators of the corresponding workspace.
Impact Scope¶
When editing or deleting an authorization rule, if you remove items from the data scope or log indexes.
After you click Confirm, a sliding window appears on the right, showing the impact scope of deleting the data authorization for the currently authorized workspace, including the configuration names of Monitors and Data Access.
You can export the list as a CSV file.
Use Cases¶
After successfully adding cross-workspace authorization, you can perform cross-workspace queries through the following entry points in the workspace.
Same-Site Cross-Workspace Query for APM and RUM¶
On pages that support cross-workspace queries for Application Performance Monitoring (APM) and Real User Monitoring (RUM), you can use the "Workspace" selector at the top to select multiple authorized workspaces on the same site and analyze data jointly. Target workspaces must have valid authorization for the corresponding data types, and queries also follow feature permissions and data access rules.
- Open the Workspace selector and select the site and workspaces to query.
- Use the service or application filters provided on the page to determine the analysis target.
- View the list or charts, and click a specific record to go to its details in the source workspace.
Each query can include only one site. When you switch to selecting workspaces from another site, the original site selection is cleared. After you clear all selections, queries return to the current workspace. Services or applications with the same name in different workspaces are displayed separately and cannot be considered the same object based only on name or application ID.
| Page | Query Scope |
|---|---|
| APM service performance, traces, Error Tracking, Profiling, and related charts | Query using the selected workspace scope. After opening a specific service or record, view details according to its source workspace. |
| RUM application list, Explorer, and analysis dashboards | Query using the selected workspace and application scope. The same application ID in different workspaces is still distinguished as an independent application. |
| RUM heatmaps and funnels | Retrieve candidate applications from the selected workspaces. Only one application and its source workspace data are analyzed at a time. |
Cross-Workspace Read-Only¶
When you select multiple workspaces, or select only one workspace that is not the current login workspace, the page enters cross-workspace read-only mode. You can view, filter, drill down, and export data in the ways supported by the page, but you cannot modify configurations across workspaces, including:
- APM service configurations, favorites, monitoring configurations, and team relationships.
- RUM application configurations, SourceMap, dashboard bindings, and data access rules.
- Adding, editing, and deleting snapshots.
To modify configurations, go to the workspace that owns the object, select only the current workspace, and then operate according to your existing role permissions.
Query Limits and Exception Handling¶
- ES deployments remain single-select; Free Plan, shared pages, and pages without a cross-workspace authorization entry point follow the existing restrictions.
- If a query or authentication fails for any target workspace, this joint query will not replace complete results with partial results from other workspaces. Follow the page prompts to handle authorization or retry.
- If the source workspace of a record cannot be determined, the details or Session Replay entry point is unavailable. Refresh and try again.
- When fields with the same name but different types exist across workspaces, you cannot directly sort or aggregate by that field. Handle the type conflict as prompted on the page.
- Cross-workspace CSV exports include the workspace name and workspace UUID to help distinguish result sources.
Query Authorized Data Through Agent¶
After completing data authorization, you can specify the target workspace, analysis object, and time range in an Agent task in the current workspace, and the Agent will query and analyze the authorized data. Queries remain subject to the authorization scope, such as data types and log indexes, and a single joint query includes only workspaces within the same target site.
Data query authorization does not grant permission to modify configurations in the target workspace, nor does it establish invocation relationships between Agents. If you need the specialized capabilities or tools of a target Agent, configure A2A invocation authorization separately. For the differences between the two approaches, see Cross-Workspace Query vs. A2A: How to Choose; for example questions, see Query Data in Other Workspaces.






