Skip to main content

Microsoft Graph Permissionsync

Auto-generated

This page is imported automatically from an external repository.

Source project: Open repository

This module is used for syncing Exchange calendar permissions with ADITO calendar permissions. It uses the Microsoft Graph API and therefore the microsoft-graph-api module for handling the communication.

Permissions

To read calendar permissions, your app needs one of the following Graph permissions:

Application (app-only):

Calendars.Read – Read all user calendars. Calendars.ReadWrite – Read/write all user calendars.

note

Application permissions require admin consent.

About this module

graphSyncCalendarPermissions_serverProcess

This process starts the synchronization of calendar permissions. It uses the microsoft-graph-api module for communication and the CalendarPermGraph_lib process to better modularize the code.

The process fetches all calendar permissions for users that have a calendarID set in the user directory. The set of users is restricted via the domain preference described below to avoid sending unnecessary requests to the Graph API.

The response data is analyzed and permissions are written to the table AB_PERMISSIONCALENDAR.

Default permissions (i.e. permissions granted to the whole organization) are stored in the same table. Instead of one row per grantee, a single row is inserted with the grantee row id set to default.

note

Grantor and grantee are currently always written with type USER. Department-level permissions are not supported yet.

note

Unknown Graph roles that do not match a known mapping fall back to readWrite.

Custom Properties / Configuration

microsoftGraph.permissionSync.domainName

Domain suffix used to limit which calendarID values are synchronized. Only users whose calendarID ends with this value are included in the permission sync.

Example value: @mycompany.onmicrosoft.com

Throttling

This process uses the throttling mechanism of the microsoft-graph-api module. For more information about throttling, see the microsoft-graph-api module documentation.

https://gitlab.adito.de/xrm-modules/microsoft-graph/microsoft-graph-contactsync
https://gitlab.adito.de/xrm-modules/microsoft-graph/microsoft-graph-api