Configuring Azure AD
The C4C-App for Microsoft Graph API requires that you register a new App through Azure AD. This new App should use OAuth2.0’s Client Credentials grant-flow and should provide application level read-write permissions to the APIs: Calendar and Mail.
The following flow diagram displays the steps involved in configuring Azure AD.
Steps for configuring Azure AD.Steps for configuring Azure AD.
Registration Azure AD
Take the following steps to register Azure AD.
Procedure
1. Open a Web browser and navigate to your Azure Active Directory.
2. Select the menu option: App Registrations.
3. Click the button New registration.
image displaying the name filed in the dashboardimage displaying the name filed in the dashboard
4. Provide a name for the application and save (e.g. Planon C4C).
5. Once created, note down the Tenant ID and Client ID. You will need them later when configuring the C4C app in Planon ProCenter .
Registration of Azure ADRegistration of Azure AD
Azure permissions
Procedure
1. Select the button View API Permissions or select the menu option API permissions.
2. Click the button Add a permission.
A Request API permissions window appers.
3. Select Graph API.
4. Select Application permissions.
The API permissions windowThe API permissions window
5. Expand the permissions for Calendars and select the check box Read & write calendars in all mailboxes.
The selected Calendars optionThe selected Calendars option
6. Expand the permissions for Mail and select the check box Read & write mail in all mailboxes.
* 
Permissions only to be set for sync-behavior In-the-lead.
The selected Mail optionThe selected Mail option
7. Click the button V Grant admin consent for ….
Adding client credentials
Procedure
1. Select the menu option Certificates & secrets.
2. Click New Client Secret.
The Add a client secret dialog box appears.
3. Add a Description and an Expiration period for the client secret.
The description and expiry details for newly added client secretThe description and expiry details for newly added client secret
4. Click Add.
* 
Copy the generated Client secret to a safe location. You will not be able to retrieve it once you leave the page or perform another operation.
The Client secret is added.