Skip to content

Commit ca8f8bf

Browse files
fixed tabs
1 parent 22f89fa commit ca8f8bf

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

articles/healthcare-apis/azure-api-for-fhir/find-identity-object-ids.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,29 @@ ms.author: kesheth
1515

1616
[!INCLUDE [retirement banner](../includes/healthcare-apis-azure-api-fhir-retirement.md)]
1717

18-
In this article, learn how to find identity object IDs needed when configuring the Azure API for FHIR to [use an external or secondary Active Directory tenant](configure-local-rbac.md) for data plane.
18+
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](configure-local-rbac.md) for data plane.
1919

2020
## Find user object ID
2121

22-
If you have a user with user name `[email protected]`, you can locate the user's `ObjectId` by using this Microsoft Graph PowerShell command:
22+
If you have a user with user name `[email protected]`, you can locate the user's `ObjectId` by using a Microsoft Graph PowerShell command or the Azure Command-Line Interface (CLI).
23+
24+
#### [PowerShell](#tab/powershell)
2325

2426
```powershell
2527
$(Get-MgUser -Filter "UserPrincipalName eq '[email protected]'").Id
2628
```
2729

28-
Or use the Azure Command-Line Interface (CLI):
30+
#### [Azure CLI](#tab/command-line)
2931

3032
```azurecli-interactive
3133
az ad user show --id [email protected] --query id --out tsv
3234
```
3335

3436
## Find service principal object ID
3537

36-
Suppose you registered a [service client app](register-service-azure-ad-client-app.md) 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 this Microsoft Graph PowerShell command:
38+
Suppose you registered a [service client app](register-service-azure-ad-client-app.md) 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.
39+
40+
#### [PowerShell](#tab/powershell)
3741

3842
```powershell
3943
$(Get-MgServicePrincipal -Filter "AppId eq 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'").Id
@@ -45,23 +49,25 @@ Where `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX` is the service client application I
4549
$(Get-MgServicePrincipal -Filter "DisplayName eq 'testapp'").Id
4650
```
4751

48-
If you're using the Azure CLI, you can use:
52+
#### [Azure CLI](#tab/command-line)
4953

5054
```azurecli-interactive
5155
az ad sp show --id XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX --query id --out tsv
5256
```
5357

5458
## Find a security group object ID
5559

56-
If you would like to locate the object ID of a security group, you can use the following Microsoft Graph PowerShell command:
60+
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.
61+
62+
#### [PowerShell](#tab/powershell)
5763

5864
```powershell
5965
$(Get-MgGroup -Filter "DisplayName eq 'mygroup'").Id
6066
```
6167

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

64-
If you're using the Azure CLI, you can use:
70+
#### [Azure CLI](#tab/command-line)
6571

6672
```azurecli-interactive
6773
az ad group show --group "mygroup" --query id --out tsv

0 commit comments

Comments
 (0)