# Steps to register your application at Microsoft Office 365

To use OAuth 2.0, an application must have an application ID issued by Azure Active Directory.

1. Open a browser and navigate to the Azure Active Directory admin center and login using admin account.
2. Select Azure Active Directory in the left-hand navigation, then select App registrations under Manage.

3. Select New registration. On the Register an application page, set the values as follows:

   - Set Name to a friendly name for your app.
   - Set Supported account types to Accounts in this organizational directory only.
   - For Redirect URI, change the dropdown to Public client (mobile & desktop) and set the value to https://login.microsoftonline.com/common/oauth2/nativeclient

4. Click on Register. On the next page, copy the value of the Application (client) ID and Directory (tenant) ID and save them, you will need that later.

5. Select API permissions in the left-hand navigation under Manage.

6. Select Add a permission. On the Request API permissions page, select Microsoft Graph.

7. Select Application permissions and then select:

   - Mail.Read

   - Mail.ReadWrite

   - Mail.Send

   Click on Add permissions

8. Select Grant admin consent for org and click on the Yes button in the consent dialog.

9. Under Manage, click on Certificates & Secrets from the left-hand navigation pane.

10. Select New Client Secret, add a small short description and select Add.

11. Copy the value of the newly added client secret and save it, as you will need it later.

12. The below values will be required to configure OAuth 2.0 in MiCollab.
    - Tenant-ID (generated in Step-4)
    - Application-ID (generated in Step-4)
    - Client Secret (generated in Step-11)
    Note:

    - For New Deployments - The admin of Office 365 needs to perform Step 1 to Step 12

    - For Existing Sites - If the application is already registered in their tenant, they need to follow Step 5 to Step1