# IRPCVaultAdmin.SetAzureADProvisioningState

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Vault administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultAdmin/SetAzureADProvisioningState/

Badges: `Administration API / specialized` `admin` `session` `idempotent`

Enables or disables user provisioning (SCIM) from Microsoft Entra ID (Azure AD) in the vault.

- **Service:** [Vault administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultAdmin/index.md) `MFiles.IRPCVaultAdmin`
- **gRPC method:** `/MFiles.IRPCVaultAdmin/SetAzureADProvisioningState`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/set-azure-adprovisioning-state`
- **Request:** [`SetAzureADProvisioningStateRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultAdmin/SetAzureADProvisioningState/index.md#request)
- **Response:** [`SetAzureADProvisioningStateResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultAdmin/SetAzureADProvisioningState/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires a vault session with full control of the vault.
- The vault must already have a provisioning configuration; otherwise the call fails.

<a id="request"></a>

## Request: SetAzureADProvisioningStateRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `provisioning_enabled` | `bool` | True to enable provisioning, false to disable it. |
| `lisence_type` | [`LicenseType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.LicenseType/index.md) | The license type that new provisioned users get when provisioning is enabled. Values: `LICENSE_TYPE_NONE` (0), `LICENSE_TYPE_NAMED_USER_LICENSE` (1), `LICENSE_TYPE_CONCURRENT_USER_LICENSE` (2), `LICENSE_TYPE_READ_ONLY_LICENSE` (3), `LICENSE_TYPE_VISITOR_LICENSE` (4). |

<a id="response"></a>

## Response: SetAzureADProvisioningStateResponse

No fields.
