Wiki source code of ews
Version 3.1 by Rudi Marais on 2023/02/01 13:08
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | [[Authenticate an EWS application by using OAuth ~| Microsoft Learn>>url:https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth]] | ||
| 2 | |||
| 3 | [[Limiting application permissions to specific Exchange Online mailboxes - Microsoft Graph ~| Microsoft Learn>>url:https://learn.microsoft.com/en-us/graph/auth-limit-mailbox-access]] | ||
| 4 | |||
| 5 | |||
| 6 | {{code language="powershell"}} | ||
| 7 | Install-Module ExchangeOnlineManagement | ||
| 8 | |||
| 9 | Import-Module ExchangeOnlineManagement | ||
| 10 | |||
| 11 | Connect-ExchangeOnline | ||
| 12 | {{/code}} | ||
| 13 | |||
| 14 | |||
| 15 | |||
| 16 | [[image:image-20221124160854-1.png]] | ||
| 17 | |||
| 18 | |||
| 19 | {{code language="powershell"}} | ||
| 20 | New-ApplicationAccessPolicy -AppId a0a9b369-4e2b-4648-a8bc-aa45922d9cf4 -PolicyScopeGroupId mail@ebsphere.com -AccessRight RestrictAccess -Description "Restrict this app to Mail" | ||
| 21 | |||
| 22 | |||
| 23 | Test-ApplicationAccessPolicy -Identity mail@ebsphere.com -AppId a0a9b369-4e2b-4648-a8bc-aa45922d9cf4 | ||
| 24 | {{/code}} |