Tenant Service Account#
The service account is a dedicated Microsoft Entra identity that lets CI/CD pipelines, BI tools and other integrations call the Reply CMP REST API and MCP server without a person’s account. It is strictly separate from the secretless identity used by provisioning runners, so runner callbacks continue to work independently.
Navigate: Tenant → Service account. Viewing the page requires
Onboarding.Authorization / Read; changing it requires Onboarding.Authorization / Write
and Onboarding.Authorization / Delete.
How it works#
Element |
Behaviour |
|---|---|
API access |
Disabled by default. After you disable access, new API and MCP calls are refused within 30 seconds. |
Roles |
Reply CMP roles assigned to the service account authorize its API and MCP calls in this tenant only, with the same permission checks as users. Without roles, tenant data calls are refused. |
Credentials |
Client secrets created on this page for the dedicated Entra app ( |
Rate limit |
REST API and MCP calls count against the tenant rate limit for service account requests. See the rate limits in Tenant Quotas. |
Enable API access#
Open Tenant → Service account.
Turn on the API access switch to reveal Roles, Client secrets and Connection details.
Under Roles, select Manage roles and assign the roles the integration needs, for example a FinOps reader role for cost exports.
To disable API access, turn the switch off and confirm. Roles and client secrets are kept, and existing client secrets remain listed so you can revoke compromised credentials while API access is disabled.
You can assign only roles whose permissions you hold. The Owner role and roles that manage users, RBAC, guardrails or the tenant, override guardrails, recover deployments or approve catalog items cannot be assigned to the service account, and the role list shows only the roles it can hold. These permissions are also refused on every request: if a role assigned to the service account is later edited to include one of them, the service account still cannot use it.
The service account cannot use interactive-only endpoints such as the CMP Agent chat, the report designer, personal dashboards and saved queries, or this page.
Create and rotate client secrets#
Under Client secrets, enter a description and choose an expiry of 30, 90, 180 or 365 days.
Select Create secret.
Copy the value from the dialog. Reply CMP does not store it and cannot show it again.
At most two secrets can be active. To rotate, create the new secret, update the integration, then revoke the old secret and confirm.
Request a token with the client credentials flow, using the client ID, token endpoint and scope under Connection details (expand the section to see them):
curl -s -X POST "https://login.microsoftonline.com/<authentication-tenant-id>/oauth2/v2.0/token" \
-d "grant_type=client_credentials" \
-d "client_id=<client-id>" \
--data-urlencode "client_secret=<secret>" \
--data-urlencode "scope=api://<reply-cmp-api-client-id>/.default"
Call the API with Authorization: Bearer <access_token>. The REST API reference
lists the operations the service account can call and the permissions each one requires.
Responses#
Status |
Meaning |
|---|---|
|
The token is not from the tenant service account, or API access is disabled |
|
The assigned roles do not include the required permission, or the endpoint is interactive-only |
|
The service account rate limit is exhausted; retry after the |
Audit#
Enabling or disabling API access, creating or revoking secrets and assigning or removing roles are recorded in Tenant → Auditing → Tenant. Requests made by the service account show the service account as the initiator.