---
title: Creating Enterprise Application in M365
slug: creating-enterprise-application-in-m365
docTags: 
createdAt: 2024-12-13T23:27:27.435Z
---

To enable API connectivity between Gimmal L4i and Microsoft SharePoint Online, an Enterprise Application must be configured.

The following steps below outline this process: 

- Visit ***https\://portal.azure.com/*** then login using a tenant administrative account
- Click on **Active Directory**, then click on **App Registrations&#x20;**&#x61;nd click on ***New Registration***
- Name the application *l4i\_suffix* (Either DEV, TEST,PROD) depending on environment provisioning
- Select: *Accounts in this organizational directory only (tenant only - Single tenant)*
- Click **Register**

Once the application is created, select it to open the options/configuration

- Select **Api Permissions** under the left hand pane section called Manage
- Click **Add a Permission&#x20;**- the Request API permissions opens
- In the Request API permissions - Select **Microsoft Graph**, and then select Application Permissions
- Type "Sites" in the search box and select ***Sites.FullControl.All*** for permissions and click '**Add Permissions**'
- **Important!** Click *Grant admin consent for \<tenant>&#x20;*&#x61;s shown below

::Image[]{src="https://api.archbee.com/api/optimize/1hH4CNQG9tP4YS-TB-TC6/tJtHtUlM4htjRTN28mp1G_image.png" size="90" width="2658" height="1062" position="center" showCaption="false"}

Next select ***Certificates & secrets*** in the left hand pane section called Manage

- Click ***+ New client secret***
- Type in for the description ***l4i\_suffix*** (Where the suffix is DEV/TEST/PRD)
- Select the appropriate expiry time
- Click **'Add'**
- **Important!&#x20;**&#x43;opy and Save the **Value&#x20;**&#x77;hich is the secret required to configure the d4i connection later. This will **NOT&#x20;**&#x62;e available when later viewing the secret information (keep it secret, keep it safe)

Next, Select **Manifest** in the left hand pane section called Manage

- Change **"allowPublicClient"** to **true&#x20;**&#x61;nd click **save**

Click on **Overview&#x20;**&#x69;n the left hand pane and copy the following values:

- Application (client) ID
- Directory (tenant) ID

