Proposed Pull Request Change

title description author ms.author ms.service ms.subservice ms.topic ms.date
Manage De-identification Service Access with Azure RBAC Learn how to manage access to the de-identification service in Azure Health Data Services by assigning built-in Azure RBAC roles. Get started today. jovinson-ms jovinson azure-health-data-services deidentification-service how-to 11/05/2026
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
⚠ Content Truncation Detected
The generated rewrite appears to be incomplete.
Original lines: -
Output lines: -
Ratio: -
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: Manage De-identification Service Access with Azure RBAC description: Learn how to manage access to the de-identification service in Azure Health Data Services by assigning built-in Azure RBAC roles. Get started today. author: jovinson-ms ms.author: jovinson ms.service: azure-health-data-services ms.subservice: deidentification-service ms.topic: how-to ms.date: 11/05/2026 --- # Use Azure role-based access control with the de-identification service Microsoft Entra ID authorizes access rights to secured resources through Azure role-based access control (RBAC). The de-identification service defines a set of built-in roles that encompass common sets of permissions used to access de-identification functionality. Microsoft Entra ID uses the concept of a security principal, which can be a user, a group, an application service principal, or a [managed identity for Azure resources](/entra/identity/managed-identities-azure-resources/overview). When an Azure role is assigned to a Microsoft Entra ID security principal over a specific scope, Azure grants access to that scope for that security principal. For more information about scopes, see [Understand scope for Azure RBAC](/azure/role-based-access-control/scope-overview). ## Prerequisites - A de-identification service in your Azure subscription. If you don't have a de-identification service, follow the steps in [Quickstart: Deploy the de-identification service](quickstart.md). ## Available built-in roles The de-identification service has the following built-in roles available: |Role |Description | |-----|------------| |DeID Data Owner |Full access to de-identification functionality. | |DeID Real-time Data User |Execute requests against de-identification API endpoints. | |DeID Batch Owner |Create and manage de-identification batch jobs. | |DeID Batch Reader |Read-only access to de-identification batch jobs. | ## Storage access for batch jobs Batch de-identification jobs read and write documents in Azure Storage by using the de-identification service's managed identity, not the identity of the user or application that creates the job. Any security principal that can create jobs (for example, with the **DeID Data Owner** or **DeID Batch Owner** role) can direct the service to read from and write to any storage location that the managed identity can access. To limit this access, follow the principle of least privilege: - Assign storage roles to the managed identity at the **container** scope, not at the storage account, resource group, or subscription scope. Grant access only to the containers that hold job input and output. - Use **Storage Blob Data Reader** on containers that only hold input documents, and **Storage Blob Data Contributor** only on containers that receive output. - Grant the batch roles only to principals who should have the same storage access as the managed identity. - If different teams or datasets need different storage access, use a separate de-identification service, each with its own managed identity and role assignments. - Restrict write access to input containers. The service processes documents in the source location and writes the results to the target location by using the managed identity's permissions. For more information, see [Use managed identities](managed-identities.md) and [Configure Azure Storage to de-identify documents](configure-storage.md). ## Assign a built-in role Keep in mind the following points about Azure role assignments with the de-identification service: - When you create a de-identification service, you aren't automatically assigned permissions to access data via Microsoft Entra ID. You need to explicitly assign yourself an applicable Azure role. You can assign it at the level of your subscription, resource group, or de-identification service. - When you assign roles, it can take up to 10 minutes for changes to take effect. - When you lock the de-identification service with an [Azure Resource Manager read-only lock](/azure/azure-resource-manager/management/lock-resources), the lock prevents the assignment of Azure roles that are scoped to the de-identification service. - When Azure deny assignments are applied, your access might be blocked even if you have a role assignment. For more information, see [Understand Azure deny assignments](/azure/role-based-access-control/deny-assignments). You can use different tools to assign built-in roles. Select the tab that applies for details. # [Azure portal](#tab/azure-portal) To use the de-identification service with Microsoft Entra ID credentials, you must assign a security principal one of the built-in roles. To learn how to assign these roles to a security principal, follow the steps in [Assign Azure roles using the Azure portal](/azure/role-based-access-control/role-assignments-portal). # [Azure PowerShell](#tab/azure-powershell) To assign an Azure role to a security principal with PowerShell, call the [New-AzRoleAssignment](/powershell/module/az.resources/new-azroleassignment) command. To run the command, you need a role that includes **Microsoft.Authorization/roleAssignments/write** permissions assigned to you at the corresponding scope or higher. The format of the command can differ based on the scope of the assignment, but `ObjectId` and `RoleDefinitionName` are required parameters. While the `Scope` parameter is optional, set it to retain the principle of least privilege. By limiting roles and scopes, you limit the resources that are at risk if the security principal is ever compromised. The scope for a de-identification service is in the form `/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HealthDataAIServices/deidServices/<De-identification Service Name>` The example assigns the **DeID Data Owner** built-in role to a user, scoped to a specific de-identification service. Replace the placeholder values in angle brackets `<>` with your own values: ```azurepowershell New-AzRoleAssignment -SignInName <Email> ` -RoleDefinitionName "DeID Data Owner" ` -Scope "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HealthDataAIServices/deidServices/<De-identification Service Name>" ``` A successful response should look like: ``` console RoleAssignmentId : /subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HealthDataAIServices/deidServices/<De-identification Service Name>/providers/Microsoft.Authorization/roleAssignments/<Role Assignment ID> Scope : /subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HealthDataAIServices/deidServices/<De-identification Service Name> DisplayName : Mark Patrick SignInName : markpdaniels@contoso.com RoleDefinitionName : DeID Data Owner RoleDefinitionId : <Role Definition ID> ObjectId : <Object ID> ObjectType : User CanDelegate : False ``` For more information, see [Assign Azure roles using Azure PowerShell](/azure/role-based-access-control/role-assignments-powershell). # [Azure CLI](#tab/azure-pcli) To assign an Azure role to a security principal with Azure CLI, use the [az role assignment create](/cli/azure/role/assignment) command. To run the command, you need a role that includes **Microsoft.Authorization/roleAssignments/write** permissions assigned to you at the corresponding scope or higher. The format of the command can differ based on the type of security principal, but `role` and `scope` are required parameters. The scope for a de-identification service is in the form `/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HealthDataAIServices/deidServices/<De-identification Service Name>` The following example assigns the **DeID Data Owner** built-in role to a user, scoped to a specific de-identification service. Replace the placeholder values in angle brackets `<>` with your own values: ```azurecli az role assignment create \ --assignee <Email> \ --role "DeID Data Owner" \ --scope "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HealthDataAIServices/deidServices/<De-identification Service Name>" ``` For more information, see [Assign Azure roles using Azure PowerShell](/azure/role-based-access-control/role-assignments-cli). # [ARM template](#tab/azure-resource-manager) To learn how to use an Azure Resource Manager template to assign an Azure role, see [Assign Azure roles using Azure Resource Manager templates](/azure/role-based-access-control/role-assignments-template). --- ## Related content - [What is Azure role-based access control (Azure RBAC)?](/azure/role-based-access-control/overview) - [Best practices for Azure RBAC](/azure/role-based-access-control/best-practices)
Success! Branch created successfully. Create Pull Request on GitHub
Error: