skillfed

azure-communication-identity

Microsoft Azure Communication Identity Service Client Library for Python

azure-communication-identity v1.5.0 311.0K downloads/30d#7,742 on PyPI5,588
Permissive license MIT License Active released

What it is and what it does

Azure Communication Identity is a Python client library for managing user identities and access tokens within Azure Communication Services. It provides a straightforward API to create and delete communication identities, issue scoped access tokens for services like chat and calling, and revoke tokens when needed. The library wraps Azure's REST API and handles authentication via connection strings or Azure Active Directory credentials.

The package is designed as a foundational component for applications that need to integrate Azure Communication Services. You use it to bootstrap identity management before calling other Azure communication client libraries (chat, calling, SMS). It supports token scoping to limit permissions, custom token expiration times, and Teams user token exchange for hybrid scenarios.

Use it for:

  • Bootstrap identity setup for a multi-user chat or calling application backed by Azure Communication Services.
  • Issue short-lived access tokens with specific scopes (CHAT, VOIP, CHAT_JOIN) for client applications.
  • Revoke all tokens for a user when they log out or their account is disabled.
  • Exchange Azure AD tokens from Teams users to Communication Identity tokens for interoperability.
  • Create and manage communication identities programmatically in a backend service.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Creates and manages user identities and access tokens for Azure Communication Services, enabling authentication for chat, calling, and SMS operations.

Yes. This is a stable, actively maintained library with no known vulnerabilities, low install friction, and permissive licensing. Install it if you are building on Azure Communication Services and need to manage identities and tokens from Python. It is a required foundation for using other Azure communication client packages.

Install

azure-communication-identity on PyPI

pip

pip install azure-communication-identity

uv

uv add azure-communication-identity

poetry

poetry add azure-communication-identity

Installing azure-communication-identity

Before you install

Low install friction with three lightweight runtime dependencies (msrest, azure-core, typing-extensions). The package is actively maintained with a recent release and no known vulnerabilities.

License in practice

MIT License permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.

Quickstart

pip install azure-communication-identity

from azure.communication.identity import CommunicationIdentityClient
from azure.identity import DefaultAzureCredential

identity_client = CommunicationIdentityClient(endpoint, DefaultAzureCredential())
user = identity_client.create_user()

Requires an active Azure subscription and a deployed Communication Services resource with endpoint and credentials configured.

Verify before relying

  • Whether token expiration can be configured beyond the documented 1–24 hour range.
  • Performance characteristics when managing large numbers of identities or tokens.
  • Specific error handling and retry behavior for transient failures.

Package facts

License MIT License (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 3 — msrest, azure-core, typing-extensions
Maintenance actively maintained — 911 days since the last release
Last repo commit
First released
Downloads 311,037/month — #7,742 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: azure_communication_identity-1.5.0-py3-none-any.whl

Keywords: azure, azure sdk

Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Tags

azure communication identity tokensazure user identity managementazure communication services authcreate azure communication usersazure access token generationazure communication scoped tokensazure teams user token exchange
azure-sdkidentity-managementcommunication-services

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

azure-communication-chat

Python SDK for Azure Communication Services…

permissive · top 15,000 on PyPI

azure-communication-phonenumbers

Manages Azure Communication Services phone…

permissive · top 15,000 on PyPI

azure-communication-sms

Sends SMS messages through Azure Communication…

permissive · top 15,000 on PyPI

azure-mgmt-msi

Manages Azure Managed Service Identities…

permissive · top 5,000 on PyPI

azure-communication-rooms

Manages Azure Communication Services rooms for…

permissive · top 15,000 on PyPI

azure-communication-callautomation

Provides a Python SDK to build server-based…

permissive · top 15,000 on PyPI

microsoft-kiota-authentication-azure

Provides Azure identity authentication for HTTP…

permissive · top 5,000 on PyPI

azure-identity

Provides Microsoft Entra ID token-based…

unclear · top 1,000 on PyPI

azure-mgmt-core

Provides ARM-specific extensions to Azure Core…

permissive · top 1,000 on PyPI

msal

MSAL for Python handles OAuth2 and OpenID…

permissive · top 1,000 on PyPI