CommunicationIdentityClient (stable:2025-06-30)

2025/05/29 • 9 new methods

CommunicationIdentity_Create (new)
Description Create a new identity, and optionally, an access token.
Reference Link ¶

⚼ Request

POST:  /identities
{
api-version: string ,
body:
{
createTokenWithScopes:
[
string ,
]
,
expiresInMinutes: integer ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (201)

{
identity:
{
id: string ,
}
,
accessToken:
{
token: string ,
expiresOn: string ,
}
,
}
CommunicationIdentity_Delete (new)
Description Delete the identity, revoke all tokens for the identity and delete all associated data.
Reference Link ¶

⚼ Request

DELETE:  /identities/{id}
{
id: string ,
api-version: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (204)

{}
CommunicationIdentity_RevokeAccessTokens (new)
Description Revoke all access tokens for the specific identity.
Reference Link ¶

⚼ Request

POST:  /identities/{id}/:revokeAccessTokens
{
id: string ,
api-version: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (204)

{}
CommunicationIdentity_ExchangeTeamsUserAccessToken (new)
Description Exchange an Entra ID access token of a Teams user for a new Communication Identity access token with a matching expiration time.
Reference Link ¶

⚼ Request

POST:  /teamsUser/:exchangeAccessToken
{
api-version: string ,
body:
{
token: string ,
appId: string ,
userId: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (200)

{
token: string ,
expiresOn: string ,
}
CommunicationIdentity_IssueAccessToken (new)
Description Issue a new token for an identity.
Reference Link ¶

⚼ Request

POST:  /identities/{id}/:issueAccessToken
{
id: string ,
api-version: string ,
body:
{
scopes:
[
string ,
]
,
expiresInMinutes: integer ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (200)

{
token: string ,
expiresOn: string ,
}
TeamsExtensionToken_Exchange (new)
Description Exchanges a Teams Phone token for an ACS user access token.
Reference Link ¶

⚼ Request

POST:  /access/teamsExtension/:exchangeAccessToken
{
body: object ,
api-version: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (200)

{
identity:
{
id: string ,
}
,
accessToken:
{
token: string ,
expiresOn: string ,
}
,
}
TeamsExtensionAssignment_Get (new)
Description Get Teams Phone access assignment by object id.
Reference Link ¶

⚼ Request

GET:  /access/teamsExtension/tenants/{tenantId}/assignments/{objectId}
{
tenantId: string ,
objectId: string ,
api-version: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (200)

{
objectId: string ,
tenantId: string ,
principalType: enum ,
clientIds:
[
string ,
]
,
}
TeamsExtensionAssignment_Upsert (new)
Description Creates or replaces a Teams Phone access assignment.
Reference Link ¶

⚼ Request

PUT:  /access/teamsExtension/tenants/{tenantId}/assignments/{objectId}
{
tenantId: string ,
objectId: string ,
api-version: string ,
body:
{
principalType: enum ,
clientIds:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (200)

{
objectId: string ,
tenantId: string ,
principalType: enum ,
clientIds:
[
string ,
]
,
}

⚐ Response (201)

{
objectId: string ,
tenantId: string ,
principalType: enum ,
clientIds:
[
string ,
]
,
}
TeamsExtensionAssignment_Delete (new)
Description Removes a Teams Phone access assignment.
Reference Link ¶

⚼ Request

DELETE:  /access/teamsExtension/tenants/{tenantId}/assignments/{objectId}
{
tenantId: string ,
objectId: string ,
api-version: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (204)

{}