If you are seeing this notice in your Nylas dashboard, you'll need to take immediate actions to handle these changes.
This change affects:
- Exchange Online Accounts (Microsoft 365/Office 365)
- Exchange Server Accounts in a Hybrid Deployment
This will not affect:
- Personal Accounts such as Outlook, Hotmail, live.com and MSN.
- Exchange On-Premise Server Accounts.
Identifying the Affected Accounts
You can use GET /a/{client_id}/accounts to identify the affected accounts.
Here is a sample python script that you can use to get the list of affected accounts.
import requests
import json
import base64
nylas_client_id=""
nylas_client_secret=""
auth_header = base64.b64encode(nylas_client_secret.encode("utf-8") + b":")
headers = {
b'Content-Type': b'application/json',
b'Authorization': b'Basic ' + auth_header
}
pagination_offset = 0
pagination_limit = 50
exchange_providers = ["eas", "ews"]
exchange_password_accounts = []
while True:
url = "https://api.nylas.com/a/{}/accounts?offset={}&limit={}".format(nylas_client_id, pagination_offset, pagination_limit)
response = requests.request("GET", url, headers=headers)
if response.status_code != 200:
break
data = response.json()
if len(data) < pagination_limit:
break
for account in data:
if account.get("provider") in exchange_providers and account.get("authentication_type") == "password":
exchange_password_accounts.append(account)
pagination_offset += len(data)
print(exchange_password_accounts)
Resources
Microsoft Exchange Online and Basic Auth Changes
Updated
Comments
0 comments
Please sign in to leave a comment.