azure-graphrbac
Microsoft Azure Graph RBAC Client Library for Python
What it is and what it does
Azure-graphrbac is a Python client library for managing Azure Active Directory resources through the Microsoft Graph RBAC API. It provides object models and operations for working with users, groups, applications, service principals, and other directory objects in Azure AD.
The package is built on msrest and msrestazure for HTTP communication and Azure authentication. However, it has been deprecated and will no longer receive feature updates or maintenance after 10-31-2024; only security fixes are provided until that date. Microsoft recommends migrating to the MS Graph SDK for Python instead.
Use it for:
- Programmatically list and query Azure AD users, groups, and applications in an existing codebase that predates the MS Graph SDK
- Manage application registrations and service principals in Azure AD via Python automation scripts
- Restore deleted applications or manage group ownership within a legacy Azure management workflow
- Perform directory object lookups and membership checks in older Azure-integrated systems
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Manages Azure Active Directory graph resources (users, groups, applications, service principals) through the Azure Graph RBAC API, but this package is deprecated as of 10-31-2024 and will receive only security fixes.
No. The package is deprecated as of 10-31-2024 and will receive no further maintenance beyond security fixes. New projects should use the MS Graph SDK for Python instead. Only consider installing if you are maintaining existing code that already depends on it and cannot migrate immediately.
Install
azure-graphrbac on PyPI
pip
pip install azure-graphrbacuv
uv add azure-graphrbacpoetry
poetry add azure-graphrbacInstalling azure-graphrbac
Before you install
Low install friction with four stable Azure SDK dependencies. However, the package entered inactive status on 10-31-2024 and will no longer be maintained; only security fixes are provided until that date has passed.
License in practice
MIT License permits commercial and private use with minimal restrictions, making it safe from a licensing standpoint for new projects, though the deprecation status is a stronger concern.
Quickstart
pip install azure-graphrbac
from azure.graphrbac import GraphRbacManagementClient
from msrestazure.azure_active_directory import UserPassCredentials
credentials = UserPassCredentials(username, password)
client = GraphRbacManagementClient(credentials, tenant_id)
Requires Azure Active Directory tenant credentials and tenant ID; deprecated as of 10-31-2024 with no future maintenance planned.
Verify before relying
- Whether security fixes are still being applied after 10-31-2024 or if the package is now in complete maintenance freeze
- Migration path and feature parity between this package and the recommended MS Graph SDK for Python
Package facts
| License | MIT License (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — msrest, msrestazure, azure-common, azure-nspkg |
| Maintenance | actively maintained — 652 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,144,070/month — #2,158 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_graphrbac-0.61.2-py2.py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
azure-mgmt-batchaiManages Azure Batch AI resources (clusters,…
permissive · top 5,000 on PyPI
azure-mgmt-schedulerProvides Python bindings to manage Azure…
permissive · top 5,000 on PyPI
azure-mgmt-notificationhubsManages Azure Notification Hubs…
permissive · top 5,000 on PyPI
msrestazureProvides HTTP client runtime and Azure…
permissive · top 1,000 on PyPI
azure-mgmt-resourcegraphProvides a Python client library to query and…
unclear · top 5,000 on PyPI
azure-mgmt-trafficmanagerProvides a Python client library to manage…
permissive · top 5,000 on PyPI
azure-mgmt-datalake-storeManages Azure Data Lake Store accounts,…
permissive · top 5,000 on PyPI
msgraph-coreProvides core HTTP client infrastructure for…
permissive · top 5,000 on PyPI
azure-mgmt-iothubprovisioningservicesManages Azure IoT Hub Provisioning Services…
permissive · top 5,000 on PyPI
msgraph-beta-sdkProvides async-first Python bindings to the…
unclear · top 15,000 on PyPI