Integrations

Get the Microsoft Teams tenant admin-consent status

Changed on

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

get/integrations/connections/{connectionId}/microsoft-teams-admin-consent

Request

Path parameters

connectionIdstring uuid required

Integration connection whose JIT policy is being read or updated.

Query parameters

organizationIdstring

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

OK

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.

grantedAtstring nullable required

ISO timestamp of the recorded grant, when granted.

consentUrlstring 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