Skip to content

Commit 1fa1c77

Browse files
updates
1 parent 0a5fe04 commit 1fa1c77

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

concepts/security-ediscovery-appauthsetup.md

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

6969
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.
7070

71-
```powershell
72-
Install-Module ExchangeOnlineManagement
73-
Import-Module ExchangeOnlineManagement
74-
Connect-IPPSSession
75-
```
71+
```powershell
72+
Install-Module ExchangeOnlineManagement
73+
Import-Module ExchangeOnlineManagement
74+
Connect-IPPSSession
75+
```
7676

7777
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.
7878

79-
Run the following cmdlet, replacing the **AppId**, **ObjectId**, and **DisplayName** arguments.
79+
Run the following cmdlet, replacing the **AppId**, **ObjectId**, and **DisplayName** arguments.
8080

81-
```powershell
82-
New-ServicePrincipal -AppId "0969a7fc-3e17-424f-92a4-54e583b2142a" -ObjectId "a8c1aaec-d18a-47fa-aec5-8651d755223c" -DisplayName "Graph App Auth"
83-
Get-ServicePrincipal
84-
```
81+
```powershell
82+
New-ServicePrincipal -AppId "0969a7fc-3e17-424f-92a4-54e583b2142a" -ObjectId "a8c1aaec-d18a-47fa-aec5-8651d755223c" -DisplayName "Graph App Auth"
83+
Get-ServicePrincipal
84+
```
8585

8686
Add 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.
8787

88-
Run the following cmdlet, replacing the **Identity** and **Member** arguments.
89-
90-
```powershell
91-
Add-RoleGroupMember -Identity "eDiscoveryManager" -Member "a8c1aaec-d18a-47fa-aec5-8651d755223c"
92-
Get-RoleGroupMember -Identity "eDiscoveryManager"
93-
```
88+
Run the following cmdlet, replacing the **Identity** and **Member** arguments.
89+
90+
```powershell
91+
Add-RoleGroupMember -Identity "eDiscoveryManager" -Member "a8c1aaec-d18a-47fa-aec5-8651d755223c"
92+
Get-RoleGroupMember -Identity "eDiscoveryManager"
93+
```
9494

9595
Add 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.
9696

97-
Run the following cmdlet, replacing the **Identity** and **Member** arguments.
97+
Run the following cmdlet, replacing the **Identity** and **Member** arguments.
9898

99-
```powershell
100-
Add-eDiscoveryCaseAdmin -User "a8c1aaec-d18a-47fa-aec5-8651d755223c"
101-
Get-eDiscoveryCaseAdmin
102-
```
99+
```powershell
100+
Add-eDiscoveryCaseAdmin -User "a8c1aaec-d18a-47fa-aec5-8651d755223c"
101+
Get-eDiscoveryCaseAdmin
102+
```
103103

104104
![Screenshot of the exchange online shell.](images/security-ediscovery-appauthsetup-step4_2.png)
105105

0 commit comments

Comments
 (0)