---
title: "Get the Microsoft Teams tenant admin-consent status"
method: GET
path: "/integrations/connections/{connectionId}/microsoft-teams-admin-consent"
tags: ["Integrations"]
---

# Get the Microsoft Teams tenant admin-consent status

`GET /integrations/connections/{connectionId}/microsoft-teams-admin-consent`

## Request

- Base URL: `https://api.sazabi.com/v1`
- URL: `https://api.sazabi.com/v1/integrations/connections/{connectionId}/microsoft-teams-admin-consent`
- Auth: none declared
- TypeScript: <https://skmtc.dev/sazabi/apis/sazabi-public-api/docs/integrations/connections/:connectionId/microsoft-teams-admin-consent/get.ts> (a function with typed inputs; its response is checked against the schema)

Read the recorded Microsoft tenant admin-consent status for a Teams connection, with a consent URL for retrying the grant.

## Path parameters

- `connectionId` string, uuid, required: Integration connection whose JIT policy is being read or updated.

## Query parameters

- `organizationId` string: Organization to operate on. Auto-filled from CLI and SDK context when omitted. User tokens must supply it unless the credential's fixed scope resolves it; secret keys may omit it (the key's organization applies).

## Response `200`

OK

- object
  - `status` 'granted' | 'declined' | 'pending', required: Recorded consent outcome. Absent metadata reads as pending; a grant completed outside a Sazabi session can leave a working tenant grant recorded as pending.
  - `grantedAt` string, nullable, required: ISO timestamp of the recorded grant, when granted.
  - `consentUrl` string, nullable, required: Microsoft admin-consent URL to open in a browser (short-lived signed state). Null for secret-key callers or when Teams OAuth is not provisioned in this environment.

## Changes

- **2026-09-09** `3a25072f7c1e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sazabi/apis/sazabi-public-api/changes/integrations/connections/:connectionId/microsoft-teams-admin-consent/get.md)

---

[API](https://skmtc.dev/sazabi/apis/sazabi-public-api.md) - [All operations](https://skmtc.dev/sazabi/apis/sazabi-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sazabi/apis/sazabi-public-api/revisions/38578083f18b?raw)
