azure-mgmt-authorization
Microsoft Azure Authorization Management Client Library for Python
What it is and what it does
This is Microsoft's official Python client library for Azure Authorization Management. It provides programmatic access to Azure's role-based access control system, allowing you to create, read, update, and delete role assignments, manage role definitions, and configure access reviews and privileged identity management settings. The library wraps Azure's REST API and requires authentication via Azure Active Directory.
The package is designed for developers building automation, governance, or compliance tools on Azure. Version 4.0.0 added support for role assignment validation, condition-based permissions, and enhanced alert configuration. The library requires Python 3.7 or later and is actively maintained by Microsoft.
Use it for:
- Automate role assignment provisioning and deprovisioning in large Azure tenants.
- Build compliance dashboards that audit who has access to which resources.
- Implement access review workflows and alert configurations programmatically.
- Manage deny assignments and conditional permissions across multiple subscriptions.
- Integrate Azure authorization into custom identity governance platforms.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Manages Azure role-based access control, role assignments, and authorization policies through the Azure Management API.
Yes. This is the official Microsoft library for Azure authorization management, actively maintained, with no security vulnerabilities and permissive MIT licensing. Install it if you need to automate or query Azure access control from Python. The only prerequisite is Azure credentials and a subscription; the package itself installs cleanly with no complex dependencies.
Install
azure-mgmt-authorization on PyPI
pip
pip install azure-mgmt-authorizationuv
uv add azure-mgmt-authorizationpoetry
poetry add azure-mgmt-authorizationInstalling azure-mgmt-authorization
Before you install
Low friction install as a pure Python wheel. Active maintenance with last commit 2026-08-14. Supports Python 3.7 through 3.11.
License in practice
MIT License permits commercial and private use with minimal restrictions; suitable for most deployment scenarios.
Quickstart
pip install azure-mgmt-authorization
from azure.mgmt.authorization import AuthorizationManagementClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = AuthorizationManagementClient(credential=credential, subscription_id=sub_id)
Requires Azure subscription and environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID.
Verify before relying
- Whether deny assignments with conditions are fully supported in all Azure environments.
- Performance characteristics when managing large numbers of role assignments or access reviews.
- Compatibility with Azure Government or other sovereign cloud deployments.
- Authentication mechanism and credential handling beyond what the description excerpt covers.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,116 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 9,768,852/month — #1,502 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_authorization-4.0.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
azure-mgmt-managementpartnerProvides a Python client library for managing…
unclear · top 5,000 on PyPI
python-redminePython-Redmine provides a Django ORM-style…
permissive · top 15,000 on PyPI
azure-mgmt-msiManages Azure Managed Service Identities…
permissive · top 5,000 on PyPI
azure-mgmt-notificationhubsManages Azure Notification Hubs…
permissive · top 5,000 on PyPI
azure-mgmt-domainregistrationManages Azure domain registrations…
permissive · top 5,000 on PyPI
azure-mgmt-trafficmanagerProvides a Python client library to manage…
permissive · top 5,000 on PyPI
oso-cloudOso Cloud client provides a Python wrapper for…
permissive · top 15,000 on PyPI
azure-mgmt-resource-deploymentsManages Azure resource deployments…
permissive · top 5,000 on PyPI
azure-mgmt-iotcentralManages Azure IoT Central applications and…
unclear · top 5,000 on PyPI
azure-mgmt-monitorProvides programmatic access to Azure Monitor…
permissive · top 5,000 on PyPI