SaaS Automation
    SaaS Automation
    Inbox Automation
    • Ping
    • Inbox Automation
    • Content Automation
    • Business Info
    • How to Set-up Domains on Google
    • How to Set-up Domains on Microsoft
    • Cloudflare
      • Adding Domain
        POST
      • Adding DNS Record
        POST
      • Domain Forwarding
        POST
      • Saving Credentials
        POST
      • Fetching Credentials
        GET
    • Microsoft
      • Adding Domain
        POST
      • Adding User
        POST
      • Saving Credentials
        POST
      • Fetching Credentials
        GET
    • Google
      • Adding User
        POST
      • Adding Domain
        POST
      • Saving Credentials
        POST
      • Fetching Credentials
        GET

    How to Set-up Domains on Microsoft

    To add domains and create mailboxes in Microsoft Office 365, you need to create a Microsoft Office 365 admin account. This process is quite simple, and you can follow this setup guide for assistance.
    To add domains and create users in Microsoft, you require the following credentials in addition to Cloudflare ones:
    1.
    Client ID
    2.
    Tenant ID
    3.
    Client Secret
    Each of these credentials is unique to every admin account. Therefore, if you intend to utilize multiple accounts to create mailboxes in Outlook, you will need these credentials for each admin account.
    Now, let's explore how you can obtain these credentials:
    To create the "Client ID, Tenant ID, and Client Secret" in Microsoft 365, follow these steps:
    1.
    Begin by signing in to your admin account at admin.microsoft.com.
    2.
    Next, log in to portal.azure.com.
    image.png
    First, search for "App Registrations" at the top search bar.
    image.png
    Next, click on it. When you do this, you will find a panel similar to this:
    image.png
    Click on the "+ New registration" link just below the title "App registrations."
    image.png
    Upon doing that, a window similar to this will open.
    image.png
    Enter the name "Automation."
    image.png
    Keep the supported account types the same.
    image.png
    Select "Web" as the Redirect URL from the dropdown menu.
    image.png
    After that, mention this URL: "https://www.integromat.com/oauth/cb/app."
    image.png
    Then simply click the "Register" button at the bottom.
    Afterwards, it will generate the "Client ID and Tenant ID."
    image.png
    Copy these "Client ID and Tenant ID" and save them somewhere else.
    Next, you need to create a Client secret. To do that, click on the "Add a certificate or secret" link.
    image.jpeg
    image.png
    image.png
    Then click on "+ New Client Secret," which will open a window similar to the screenshot below.
    Now, type "Credentials" in the description field and select a duration of 12 months from the dropdown box.
    image.png
    Click the "Add" button at the bottom. Your client secret ID is now created.
    image.png
    Copy the "Value" as highlighted, not the Secret ID, and save it along with the Client ID and Tenant ID.
    Copy this secret value immediately, as it will be hidden after a certain time.
    You have now created all three credentials. Now, you need to assign a few API permissions. To do that, click on the "API Permissions" link in the sidebar, which will open a page similar to the one shown below.
    image.png
    Click on "Microsoft Graph" marked by the pointer, and then click on "Application permissions" as shown in the given screenshot.
    image.png
    Next, search for "USER."
    image.png
    Scroll down and select all six options under the "USER" dropdown, then hit "Update permissions."
    image.png
    Once again, click on "Microsoft Graph" marked by the pointer, and then click on "Application permissions" as shown in the below screenshot.
    image.png
    Search for "DOMAIN" and select both options, then click the "Update permissions" button at the bottom.
    image.png
    Once again, click on "Microsoft Graph" marked by the pointer, and then click on "Application permissions" as shown in the selected screenshot. This time, search for "License" and select the available option, then hit the "Update permissions" button at the bottom.
    image.png
    Once all ten permissions are added, click on "Grant admin consent for ___."
    image.png
    After doing that, all the permissions will be assigned, and the status will change from "Not granted for ___" to "Granted for ___."
    image.png
    Now you are ready to use all three credentials in the automation to add domains and create users in Microsoft.
    Previous
    How to Set-up Domains on Google
    Next
    Adding Domain
    Built with