Delen via


Find identity object IDs for authentication configuration in Azure API for FHIR

Belangrijk

Azure API for FHIR wordt op 30 september 2026 buiten gebruik gesteld. Volg de migratiestrategieën om op die datum over te stappen naar de FHIR-service® van Azure Health Data Services. Vanwege de buitengebruikstelling van Azure API for FHIR zijn nieuwe klantimplementaties vanaf 1 april 2025 niet toegestaan. De FHIR-service van Azure Health Data Services is de ontwikkelde versie van Azure API for FHIR waarmee klanten FHIR-, DICOM- en MedTech-services kunnen beheren met integraties in andere Azure-services.

In this article, learn how to find the identity object IDs needed to configure the Azure API for FHIR service to use an external or secondary Active Directory tenant for data plane.

Find user object ID

If you have a user with user name myuser@contoso.com, you can locate the user's ObjectId by using a Microsoft Graph PowerShell command or the Azure Command-Line Interface (CLI) as follows.

$(Get-MgUser -Filter "UserPrincipalName eq 'myuser@contoso.com'").Id

Find service principal object ID

If you registered a service client app and you want to allow this service client to access the Azure API for FHIR. Find the object ID for the client service principal with a Microsoft Graph PowerShell command or the Azure CLI as follows.

$(Get-MgServicePrincipal -Filter "AppId eq 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'").Id

Where XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX is the service client application ID. Alternatively, you can use the DisplayName of the service client:

$(Get-MgServicePrincipal -Filter "DisplayName eq 'testapp'").Id

Find a security group object ID

If you would like to locate the object ID of a security group, you can use a Microsoft Graph PowerShell command or the Azure CLI as follows.

$(Get-MgGroup -Filter "DisplayName eq 'mygroup'").Id

Where mygroup is the name of the group you're interested in.

Volgende stappen

Configure local RBAC settings

Opmerking

FHIR® is een geregistreerd handelsmerk van HL7 en wordt gebruikt met de machtiging HL7.