---
title: "azure-mgmt-authorization | pypx"
description: "Microsoft Azure Authorization Management Client Library for Python"
canonical_url: "https://pypx.app/packages/azure-mgmt-authorization"
meta:
  "og:description": "Microsoft Azure Authorization Management Client Library for Python"
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_azure-mgmt-authorization%2Cversion_4.0.0%2Csummary_Microsoft%2BAzure%2BAuthorization%2BManagement%2BClient%2BLibrary%2Bfor%2BPython%2Clicense_MIT%2BLicense%2Cp_Ii9wYWNrYWdlcy9henVyZS1tZ210LWF1dGhvcml6YXRpb24i%2Cs_Uuh9Aj3tFGZcvLpM.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "azure-mgmt-authorization 4.0.0"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_azure-mgmt-authorization%2Cversion_4.0.0%2Csummary_Microsoft%2BAzure%2BAuthorization%2BManagement%2BClient%2BLibrary%2Bfor%2BPython%2Clicense_MIT%2BLicense%2Cp_Ii9wYWNrYWdlcy9henVyZS1tZ210LWF1dGhvcml6YXRpb24i%2Cs_Uuh9Aj3tFGZcvLpM.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **azure-mgmt-authorization**

v4.0.0

Microsoft Azure Authorization Management Client Library for Python

1.0 MB Python 3.7+ py3-none-anyMIT License

[** Diff **](https://pypx.app/packages/azure-mgmt-authorization/diff)

`$ uv add azure-mgmt-authorization`

# Microsoft Azure SDK for Python

This is the Microsoft Azure Authorization Management Client Library. This package has been tested with Python 3.7+. For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## *Disclaimer*

*Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691*

## Getting started

### Prerequisites

- Python 3.7+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package

```
pip install azure-mgmt-authorization
pip install azure-identity
```

### Authentication

By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.

With above configuration, client can be authenticated by following code:

```
from azure.identity import DefaultAzureCredential
from azure.mgmt.authorization import AuthorizationManagementClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = AuthorizationManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
```

## Examples

Code samples for this package can be found at:

- [Search Authorization Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)

## Troubleshooting

## Next steps

## Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the [Issues](https://github.com/Azure/azure-sdk-for-python/issues) section of the project.

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-authorization%2FREADME.png)

# Release History

## 4.0.0 (2023-07-21)

### Features Added

- Added operation RoleAssignmentScheduleRequestsOperations.validate
- Added operation RoleEligibilityScheduleRequestsOperations.validate
- Model AlertConfiguration has a new parameter alert\_definition
- Model AlertConfigurationProperties has a new parameter alert\_definition
- Model AlertOperationResult has a new parameter created\_date\_time
- Model AlertOperationResult has a new parameter last\_action\_date\_time
- Model AlertOperationResult has a new parameter resource\_location
- Model AlertOperationResult has a new parameter status\_detail
- Model AzureRolesAssignedOutsidePimAlertConfigurationProperties has a new parameter alert\_definition
- Model DenyAssignment has a new parameter condition
- Model DenyAssignment has a new parameter condition\_version
- Model DenyAssignment has a new parameter created\_by
- Model DenyAssignment has a new parameter created\_on
- Model DenyAssignment has a new parameter updated\_by
- Model DenyAssignment has a new parameter updated\_on
- Model DuplicateRoleCreatedAlertConfigurationProperties has a new parameter alert\_definition
- Model Permission has a new parameter condition
- Model Permission has a new parameter condition\_version
- Model RoleDefinition has a new parameter created\_by
- Model RoleDefinition has a new parameter created\_on
- Model RoleDefinition has a new parameter updated\_by
- Model RoleDefinition has a new parameter updated\_on
- Model TooManyOwnersAssignedToResourceAlertConfigurationProperties has a new parameter alert\_definition
- Model TooManyPermanentOwnersAssignedToResourceAlertConfigurationProperties has a new parameter alert\_definition

### Breaking Changes

- Removed operation AlertOperationOperations.list\_for\_scope

## 3.1.0b1 (2023-02-15)

### Features Added

- Model AlertConfiguration has a new parameter alert\_definition
- Model AlertConfigurationProperties has a new parameter alert\_definition
- Model AzureRolesAssignedOutsidePimAlertConfigurationProperties has a new parameter alert\_definition
- Model DenyAssignment has a new parameter condition
- Model DenyAssignment has a new parameter condition\_version
- Model DenyAssignment has a new parameter created\_by
- Model DenyAssignment has a new parameter created\_on
- Model DenyAssignment has a new parameter updated\_by
- Model DenyAssignment has a new parameter updated\_on
- Model DuplicateRoleCreatedAlertConfigurationProperties has a new parameter alert\_definition
- Model RoleDefinition has a new parameter created\_by
- Model RoleDefinition has a new parameter created\_on
- Model RoleDefinition has a new parameter updated\_by
- Model RoleDefinition has a new parameter updated\_on
- Model TooManyOwnersAssignedToResourceAlertConfigurationProperties has a new parameter alert\_definition
- Model TooManyPermanentOwnersAssignedToResourceAlertConfigurationProperties has a new parameter alert\_definition

## 3.0.0 (2022-10-11)

### Features Added

- Added operation AccessReviewInstancesOperations.create
- Added operation group AccessReviewHistoryDefinitionInstanceOperations
- Added operation group AccessReviewHistoryDefinitionInstancesOperations
- Added operation group AccessReviewHistoryDefinitionOperations
- Added operation group AccessReviewHistoryDefinitionsOperations
- Added operation group AccessReviewInstanceContactedReviewersOperations
- Added operation group AlertConfigurationsOperations
- Added operation group AlertDefinitionsOperations
- Added operation group AlertIncidentsOperations
- Added operation group AlertOperationOperations
- Added operation group AlertsOperations
- Added operation group ScopeAccessReviewDefaultSettingsOperations
- Added operation group ScopeAccessReviewHistoryDefinitionInstanceOperations
- Added operation group ScopeAccessReviewHistoryDefinitionInstancesOperations
- Added operation group ScopeAccessReviewHistoryDefinitionOperations
- Added operation group ScopeAccessReviewHistoryDefinitionsOperations
- Added operation group ScopeAccessReviewInstanceContactedReviewersOperations
- Added operation group ScopeAccessReviewInstanceDecisionsOperations
- Added operation group ScopeAccessReviewInstanceOperations
- Added operation group ScopeAccessReviewInstancesOperations
- Added operation group ScopeAccessReviewScheduleDefinitionsOperations
- Added operation group TenantLevelAccessReviewInstanceContactedReviewersOperations
- Model AccessReviewDecision has a new parameter insights
- Model AccessReviewDecision has a new parameter membership\_types
- Model AccessReviewDecisionProperties has a new parameter insights
- Model AccessReviewDecisionProperties has a new parameter membership\_types
- Model AccessReviewDefaultSettings has a new parameter recommendation\_look\_back\_duration
- Model AccessReviewInstance has a new parameter backup\_reviewers
- Model AccessReviewInstance has a new parameter reviewers
- Model AccessReviewInstance has a new parameter reviewers\_type
- Model AccessReviewScheduleDefinition has a new parameter exclude\_resource\_id
- Model AccessReviewScheduleDefinition has a new parameter exclude\_role\_definition\_id
- Model AccessReviewScheduleDefinition has a new parameter expand\_nested\_memberships
- Model AccessReviewScheduleDefinition has a new parameter include\_access\_below\_resource
- Model AccessReviewScheduleDefinition has a new parameter include\_inherited\_access
- Model AccessReviewScheduleDefinition has a new parameter recommendation\_look\_back\_duration
- Model AccessReviewScheduleDefinitionProperties has a new parameter exclude\_resource\_id
- Model AccessReviewScheduleDefinitionProperties has a new parameter exclude\_role\_definition\_id
- Model AccessReviewScheduleDefinitionProperties has a new parameter expand\_nested\_memberships
- Model AccessReviewScheduleDefinitionProperties has a new parameter include\_access\_below\_resource
- Model AccessReviewScheduleDefinitionProperties has a new parameter include\_inherited\_access
- Model AccessReviewScheduleDefinitionProperties has a new parameter recommendation\_look\_back\_duration
- Model AccessReviewScheduleSettings has a new parameter recommendation\_look\_back\_duration
- Model DenyAssignmentPermission has a new parameter condition
- Model DenyAssignmentPermission has a new parameter condition\_version

### Breaking Changes

- Operation RoleAssignmentsOperations.list\_for\_scope has a new parameter skip\_token
- Removed operation RoleAssignmentsOperations.validate
- Removed operation RoleAssignmentsOperations.validate\_by\_id

## 2.0.0 (2021-09-26)

**Features**

- Model RoleAssignment has a new parameter created\_on
- Model RoleAssignment has a new parameter delegated\_managed\_identity\_resource\_id
- Model RoleAssignment has a new parameter updated\_by
- Model RoleAssignment has a new parameter condition
- Model RoleAssignment has a new parameter description
- Model RoleAssignment has a new parameter updated\_on
- Model RoleAssignment has a new parameter condition\_version
- Model RoleAssignment has a new parameter created\_by
- Added operation RoleAssignmentsOperations.validate
- Added operation RoleAssignmentsOperations.list\_for\_subscription
- Added operation RoleAssignmentsOperations.validate\_by\_id
- Added operation RoleAssignmentsOperations.create\_by\_id
- Added operation RoleAssignmentsOperations.get\_by\_id
- Added operation RoleAssignmentsOperations.delete\_by\_id
- Added operation group AccessReviewInstancesAssignedForMyApprovalOperations
- Added operation group RoleManagementPolicyAssignmentsOperations
- Added operation group EligibleChildResourcesOperations
- Added operation group AccessReviewInstanceDecisionsOperations
- Added operation group RoleAssignmentSchedulesOperations
- Added operation group RoleEligibilityScheduleRequestsOperations
- Added operation group RoleEligibilitySchedulesOperations
- Added operation group RoleAssignmentScheduleInstancesOperations
- Added operation group AccessReviewInstanceMyDecisionsOperations
- Added operation group RoleAssignmentApprovalStepOperations
- Added operation group AccessReviewInstancesOperations
- Added operation group AccessReviewScheduleDefinitionsOperations
- Added operation group ScopeRoleAssignmentApprovalOperations
- Added operation group RoleAssignmentScheduleRequestsOperations
- Added operation group RoleAssignmentApprovalStepsOperations
- Added operation group RoleAssignmentApprovalOperations
- Added operation group ScopeRoleAssignmentApprovalStepsOperations
- Added operation group AccessReviewDefaultSettingsOperations
- Added operation group RoleEligibilityScheduleInstancesOperations
- Added operation group AccessReviewScheduleDefinitionsAssignedForMyApprovalOperations
- Added operation group ScopeRoleAssignmentApprovalStepOperations
- Added operation group RoleAssignmentMetricsOperations
- Added operation group RoleManagementPoliciesOperations
- Added operation group Operations
- Added operation group AccessReviewInstanceOperations

**Breaking changes**

- Operation RoleAssignmentsOperations.list\_for\_resource has a new signature
- Operation RoleAssignmentsOperations.delete has a new signature
- Operation RoleAssignmentsOperations.get has a new signature
- Operation RoleAssignmentsOperations.list\_for\_resource has a new signature
- Operation RoleAssignmentsOperations.list\_for\_resource\_group has a new signature
- Operation RoleAssignmentsOperations.list\_for\_scope has a new signature
- Model RoleAssignmentFilter no longer has parameter can\_delegate
- Model RoleAssignment no longer has parameter can\_delegate
- Model Principal has a new signature
- Model RoleAssignmentCreateParameters has a new signature
- Removed operation RoleAssignmentsOperations.list

## 1.0.0 (2020-11-23)

## 1.0.0b1 (2020-10-13)

This is beta preview version.

This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).

**General breaking changes**

- Credential system has been completly revamped:
  - `azure.common.credentials` or `msrestazure.azure_active_directory` instances are no longer supported, use the `azure-identity` classes instead: https://pypi.org/project/azure-identity/
  - `credentials` parameter has been renamed `credential`
- The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies)
- You can't import a `version` module anymore, use `__version__` instead
- Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`.
- Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` ( `CloudError` has been removed).
- Most of the operation kwarg have changed. Some of the most noticeable:
  - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user
  - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies)

**General new features**

- Type annotations support using `typing`. SDKs are mypy ready.
- This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client.
- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview.

## 0.61.0 (2020-08-10)

**Features**

- Model RoleAssignmentCreateParameters has a new parameter condition
- Model RoleAssignmentCreateParameters has a new parameter description
- Model RoleAssignmentCreateParameters has a new parameter condition\_version
- Model RoleAssignment has a new parameter condition
- Model RoleAssignment has a new parameter description
- Model RoleAssignment has a new parameter condition\_version

## 0.60.0 (2019-06-25)

**Breaking changes**

- Rename elevate\_access.post to global\_administrator.elevate\_access

**General Breaking changes**

This version uses a next-generation code generator that *might* introduce breaking changes if you were importing from the v20xx\_yy\_zz API folders. In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place.

- AuthorizationManagementClient cannot be imported from `azure.mgmt.authorization.v20xx_yy_zz.authorization_management_client` anymore (import from `azure.mgmt.authorization.v20xx_yy_zz` works like before)
- AuthorizationManagementClientConfiguration import has been moved from `azure.mgmt.authorization.v20xx_yy_zz.authorization_management_client` to `azure.mgmt.authorization.v20xx_yy_zz`
- A model `MyClass` from a "models" sub-module cannot be imported anymore using `azure.mgmt.authorization.v20xx_yy_zz.models.my_class` (import from `azure.mgmt.authorization.v20xx_yy_zz.models` works like before)
- An operation class `MyClassOperations` from an `operations` sub-module cannot be imported anymore using `azure.mgmt.authorization.v20xx_yy_zz.operations.my_class_operations` (import from `azure.mgmt.authorization.v20xx_yy_zz.operations` works like before)

Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process.

## 0.52.0 (2019-05-23)

**Features**

- Add elevate\_access API

## 0.51.1 (2018-11-27)

**Bugfixes**

- Missing principal\_type in role assignment class #3802

## 0.51.0 (2018-11-12)

**Features**

- Model RoleAssignmentCreateParameters has a new parameter principal\_type

**Breaking changes**

- Parameter role\_definition\_id of model RoleAssignmentCreateParameters is now required
- Parameter principal\_id of model RoleAssignmentCreateParameters is now required

Role Assignments API version is now 2018-09-01-preview

## 0.50.0 (2018-05-29)

**Features**

- Support Azure Stack (multi API versionning)
- Client class can be used as a context manager to keep the underlying HTTP session open for performance

**Bugfixes**

- Compatibility of the sdist with wheel 0.31.0

## 0.40.0 (2018-03-13)

**Breaking changes**

- Several properties have been flattened and "properties" attribute is not needed anymore (e.g. properties.email\_address => email\_address)
- Some method signature change (e.g. create\_by\_id)

**Features**

- Adding attributes data\_actions / not\_data\_actions / is\_data\_actions

API version is now 2018-01-01-preview

## 0.30.0 (2017-04-28)

- Initial Release
- This wheel package is built with the azure wheel extension

## **Details **

<dl>

<dt>Version</dt>
<dd>4.0.0</dd>

<dt>License</dt>
<dd>MIT License</dd>

<dt>Python</dt>
<dd>&gt;=3.7</dd>

<dt>Maintainer</dt>
<dd>Microsoft Corporation</dd></dl>

## **Links**

- [Homepage](https://github.com/Azure/azure-sdk-for-python)
- [View on PyPI](https://pypi.org/project/azure-mgmt-authorization/)

## **Release Cadence **

**1**

releases in the past year

avg 170 days between releases

## **Maintainers **

- Microsoft Corporation · [azpysdkhelp@microsoft.com](mailto:azpysdkhelp@microsoft.com)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/azure-mgmt-authorization#webpage","@type":"WebPage","description":"Microsoft Azure Authorization Management Client Library for Python","name":"azure-mgmt-authorization","url":"https://pypx.app/packages/azure-mgmt-authorization","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/azure-mgmt-authorization"]}]},{"@id":"https://pypx.app/packages/azure-mgmt-authorization#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"Microsoft Azure Authorization Management Client Library for Python","license":"MIT License","name":"azure-mgmt-authorization","softwareVersion":"4.0.0"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
