azureblog.co.uk
← cd ~/roles
// roles/azure · integration

FHIR Data ContributorAzure built-in role

Role allows user or principal full access to FHIR Data

Role ID5a1fc7df-4bf1-4951-a576-89034ee01acd
CategoryIntegration
Actions0
Data actions2

Before you assign it

  • It reaches the data, not just the resource. It has 2 data actions, such as reading blobs, secrets or messages.

What it can do

No control-plane actions.

Data actions

PermissionWhat it allows
Microsoft.HealthcareApis/services/fhir/resources/*Every operation under Microsoft.HealthcareApis/services/fhir/resources
Microsoft.HealthcareApis/workspaces/fhirservices/resources/*Every operation under Microsoft.HealthcareApis/workspaces/fhirservices/resources

Data actions it can't do

PermissionWhat it allows
Microsoft.HealthcareApis/services/fhir/resources/smart/actionAllows user to access FHIR Service according to SMART on FHIR specification.
Microsoft.HealthcareApis/workspaces/fhirservices/resources/smart/actionAllows user to access FHIR Service according to SMART on FHIR specification.

Assign it

Scope it as tightly as you can: a resource or resource group rather than the whole subscription.

azure cli
az role assignment create \
  --assignee "jane.doe@contoso.com" \
  --role "FHIR Data Contributor" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "FHIR Data Contributor" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '5a1fc7df-4bf1-4951-a576-89034ee01acd')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '5a1fc7df-4bf1-4951-a576-89034ee01acd')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "5a1fc7df-4bf1-4951-a576-89034ee01acd"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other integration roles

Find the smallest role for a task →