Create a Nextcloud service account and app password, install the Sendent Sync app, and set the shared secret Nextcloud for Exchange uses.
Create Exchange 2016/2019 service accounts, assign the ApplicationImpersonation role, and add the EWS on-premise client to your .env file.
Register an Entra ID app with full_access_as_app, grant admin consent, and create a client secret to sync Exchange Online over EWS.
Activate or update your Nextcloud for Exchange license key in the Sendent Sync admin settings, with no container or service restart needed.
Set up an optional admins.json pool of Exchange admin identities to spread sync load and avoid throttling, then point .env to the file.
Register an Entra ID app, grant Calendars.ReadWrite, Contacts.ReadWrite and User.Read.All, and add a Graph sync client to your .env file.
Limit Nextcloud for Exchange to a mail-enabled security group and chosen data types with Exchange Online RBAC for Applications in PowerShell.
Remove unneeded Microsoft Graph API permissions so Nextcloud for Exchange only syncs calendars or contacts, and match Service__SyncMode in your .env file.