Changes for page ews
Last modified by Rudi Marais on 2023/05/22 23:50
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,13 +1,24 @@ 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 + 1 1 [[Limiting application permissions to specific Exchange Online mailboxes - Microsoft Graph ~| Microsoft Learn>>url:https://learn.microsoft.com/en-us/graph/auth-limit-mailbox-access]] 2 2 3 3 6 +{{code language="powershell"}} 4 4 Install-Module ExchangeOnlineManagement 5 5 6 - Connect-ExchangeOnline9 +Import-Module ExchangeOnlineManagement 7 7 11 +Connect-ExchangeOnline 12 +{{/code}} 8 8 9 9 15 + 10 10 [[image:image-20221124160854-1.png]] 11 11 12 12 13 - 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}}