You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: concepts/security-ediscovery-appauthsetup.md
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -66,38 +66,38 @@ You need to set the correct API permissions for your application. Expand **Manag
66
66
67
67
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.
68
68
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
+
```
74
74
75
75
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.
76
76
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.
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.
85
85
86
-
Run the following cmdlet, replacing **Member** argument.
86
+
Run the following cmdlet, replacing **Member** argument in the first cmdlet.
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.
94
94
95
-
Run the following cmdlet, replacing the **User** argument.
95
+
Run the following cmdlet, replacing the **User** argument in the first cmdlet.
0 commit comments