CommunicationIdentityClient (preview:2025-03-02)

2025/04/30 • 16 new methods

CommunicationIdentity_Create (new)
Description :  Create a new identity with an optional customId mapping, and optionally, an access token. If called again with the same customId, the returned identity will be the same as the one returned previously.
Reference :  Link ¶

⚼ Request

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

⚐ Response (default)

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

⚐ Response (201)

{
identity:
{
customId: string ,
lastTokenIssuedAt: string ,
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_Get (new)
Description :  Get an identity by its id.
Reference :  Link ¶

⚼ Request

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

⚐ Response (default)

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

⚐ Response (200)

{
customId: string ,
lastTokenIssuedAt: string ,
id: string ,
}
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:
{
customId: string ,
lastTokenIssuedAt: string ,
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)

{}
EntraIdToken_Exchange (new)
Description :  Exchanges an Entra ID token for an ACS user access token.
Reference :  Link ¶

⚼ Request

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

⚐ Response (default)

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

⚐ Response (200)

{
identity:
{
customId: string ,
lastTokenIssuedAt: string ,
id: string ,
}
,
accessToken:
{
token: string ,
expiresOn: string ,
}
,
}
EntraIdAssignments_Update (new)
Description :  Updates Entra access assignments in bulk.
Reference :  Link ¶

⚼ Request

PATCH:  /access/entra/assignments
{
api-version: string ,
body: object ,
}

⚐ Response (default)

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

⚐ Response (200)

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

⚐ Response (204)

{}
EntraIdAssignments_List (new)
Description :  Lists Entra access assignments.
Reference :  Link ¶

⚼ Request

GET:  /access/entra/assignments
{
api-version: string ,
}

⚐ Response (default)

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

⚐ Response (200)

{
value:
[
{
objectId: string ,
tenantId: string ,
principalType: enum ,
clientIds:
[
string ,
]
,
}
,
]
,
nextLink: string ,
}
EntraIdAssignment_Get (new)
Description :  Get Entra access assignment by object id.
Reference :  Link ¶

⚼ Request

GET:  /access/entra/assignments/{objectId}
{
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 ,
]
,
}
EntraIdAssignment_Upsert (new)
Description :  Creates or replaces an Entra access assignment.
Reference :  Link ¶

⚼ Request

PUT:  /access/entra/assignments/{objectId}
{
objectId: string ,
api-version: string ,
body:
{
tenantId: string ,
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 ,
]
,
}
EntraIdAssignment_Delete (new)
Description :  Removes an Entra access assignment.
Reference :  Link ¶

⚼ Request

DELETE:  /access/entra/assignments/{objectId}
{
objectId: string ,
api-version: string ,
}

⚐ Response (default)

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

⚐ Response (204)

{}