Skip to content

Commit 3b8d19a

Browse files
updates
1 parent 5612feb commit 3b8d19a

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

concepts/security-ediscovery-appauthsetup.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -66,38 +66,38 @@ You need to set the correct API permissions for your application. Expand **Manag
6666

6767
2. Open a new PowerShell session. Install and import the [ExchangeOnlineManagement](https://www.powershellgallery.com/packages/ExchangeOnlineManagement) module using the following cmdlets. The Install-Module cmdlet recommends upgrading the package if the module is already installed.
6868

69-
```powershell
70-
Install-Module ExchangeOnlineManagement
71-
Import-Module ExchangeOnlineManagement
72-
Connect-IPPSSession
73-
```
69+
```powershell
70+
Install-Module ExchangeOnlineManagement
71+
Import-Module ExchangeOnlineManagement
72+
Connect-IPPSSession
73+
```
7474
7575
3. Use the [New-ServicePrincipal](/powershell/module/exchange/new-serviceprincipal) cmdlet to create a service principal with your app's details and verify it using [Get-ServicePrincipal](/powershell/module/exchange/get-serviceprincipal) cmdlet.
7676
77-
Run the following cmdlet, replacing the **AppId**, **ObjectId**, and **DisplayName** arguments.
77+
Run the following cmdlets, replacing the **AppId**, **ObjectId**, and **DisplayName** arguments in the first cmdlet.
7878
79-
```powershell
80-
New-ServicePrincipal -AppId "0969a7fc-3e17-424f-92a4-54e583b2142a" -ObjectId "a8c1aaec-d18a-47fa-aec5-8651d755223c" -DisplayName "Graph App Auth"
81-
Get-ServicePrincipal
82-
```
79+
```powershell
80+
New-ServicePrincipal -AppId "0969a7fc-3e17-424f-92a4-54e583b2142a" -ObjectId "a8c1aaec-d18a-47fa-aec5-8651d755223c" -DisplayName "Graph App Auth"
81+
Get-ServicePrincipal
82+
```
8383
8484
4. Add the Service Principal Object ID to the eDiscoveryManager role using [Add-RoleGroupMember](/powershell/module/exchange/add-rolegroupmember) cmdlet and verify using [Get-RoleGroupMember](/powershell/module/exchange/get-rolegroupmember) cmdlet.
8585
86-
Run the following cmdlet, replacing **Member** argument.
86+
Run the following cmdlet, replacing **Member** argument in the first cmdlet.
8787
88-
```powershell
89-
Add-RoleGroupMember -Identity "eDiscoveryManager" -Member "a8c1aaec-d18a-47fa-aec5-8651d755223c"
90-
Get-RoleGroupMember -Identity "eDiscoveryManager"
91-
```
88+
```powershell
89+
Add-RoleGroupMember -Identity "eDiscoveryManager" -Member "a8c1aaec-d18a-47fa-aec5-8651d755223c"
90+
Get-RoleGroupMember -Identity "eDiscoveryManager"
91+
```
9292
9393
5. Add the Service Principal Object ID to the eDiscoveryAdministrator role using [Add-eDiscoveryCaseAdmin](/powershell/module/exchange/add-ediscoverycaseadmin) cmdlet and verify using [Get-eDiscoveryCaseAdmin](/powershell/module/exchange/get-ediscoverycaseadmin) cmdlet.
9494
95-
Run the following cmdlet, replacing the **User** argument.
95+
Run the following cmdlet, replacing the **User** argument in the first cmdlet.
9696
97-
```powershell
98-
Add-eDiscoveryCaseAdmin -User "a8c1aaec-d18a-47fa-aec5-8651d755223c"
99-
Get-eDiscoveryCaseAdmin
100-
```
97+
```powershell
98+
Add-eDiscoveryCaseAdmin -User "a8c1aaec-d18a-47fa-aec5-8651d755223c"
99+
Get-eDiscoveryCaseAdmin
100+
```
101101
102102
![Screenshot of the exchange online shell.](images/security-ediscovery-appauthsetup-step4_2.png)
103103

0 commit comments

Comments
 (0)