Support
 
PhoneGet Quote
 
Support
 
US Sales: +1 888 720 9500
US Support: +1 844 245 1108
Intl: +1 925 924 9500
Aus: +1 800 631 268
UK: 0800 028 6590
CN: +86 400 660 8680

Direct Inward Dialing: +1 408 916 9890

 
 

Configure Rest API

Enabling REST API access will allow you to use multi-factor authentication as configured in your Office 365 account. Once enabled, the user will be diverted to Office 365 login portal for authentication to use O365 Manager Plus. REST API is also essential to generate reports on your Office 365 setup.

Steps to configure REST API

Automatic configuration

  1. Login to O365 Manager Plus' admin portal.
  2. Choose the Tenant Settings option found at the top right corner.
  3. Select the Enable Now option found under the Rest API Access column corresponding to the Office 365 tenant for which REST API access must be enabled.
  4. You will be diverted to the Office 365 login portal. Enter the credentials of the global admin account you had configured in O365 Manager Plus.
  5. Click Sign-in.
  6. An application for O365 Manager Plus will be created automatically. And you will now see a page that displays the list of permission that application need.

    NOTE: If you want to change the permissions required by the application, do manual configuration. 

  7. Go through the list and click Accept.
  8. You will now be redirected to O365 Manager Plus console, where you can see the REST API Access is Enabled for the account you configured.

Manual Configuration

If the automatic configuration was not successful due to permission issues, Rest API Access must be configured manually. The error message will show you a pop-up where you should fill appropriate values to complete the configuration.

Manual Configuration

Azure Portal

  1. Sign in to Azure AD portal using the credentials of the account for which you need to enable REST API.
  2. Select Azure Active Directory from the left pane.
  3. Select pp registrations.
  4. Click on New registration.
  5. Provide a Name of your choice for the O365 Manager Plus application to be created.
  6. Click on Register.
  7. You will now see the Overview page of the application you have created.
  8. Click on Add a Redirect URI.
  9. Select Web under the TYPE drop-down, and in the REDIRECT URI field, enter
    http://hostname:port_number/webclient/VerifyUser.
    For example, http://localhost:8365/webclient/VerifyUser or  https://192.345.679.345:8365/webclient/VerifyUser
  10. In the next row select Web under the TYPE drop-down, and in the REDIRECT URI field, enter http://hostname:port_number/webclient/ GrantAccess. For example, http://localhost:8365/webclient/GrantAccess or https://192.345.679.345:8365/webclient/GrantAccess

    Manual Configuration

    Note:

    • The REDIRECT URI must be,
      • Less than 256 characters in length.
      • Should not contain wildcard characters.
      • Should not contain query strings
      • Must start with HTTPS or http://localhost
      • Must be a valid and unique URL.
    • Based on the Connection Type (http/https) you have configured in O365 Manager Plus, the REDIRECT URI format varies.
      • For http, the URI value is, http://localhost:8365. Machine name or IP address cannot be used in place of localhost, if http is used.
      • For https, the URI value is, https://192.345.679.345:8365 or https://testmachine:8365.
  11. Click on Save.
  12. Click on Manifest in the left pane.
  13. Look for requiredResourceAccess array in the code.
  14. Paste the content in this file in the highlighted section of the below image.

    azure-portal-app-registrations

  15. Click on Save.
  16. Click on API permissions in the left pane.
  17. In the Grant consent section, click on Grant admin consent for <your_company_name>.
  18. Click on Yes in the pop-up that appears.
  19. Click on Certificates & secrets from the left pane.
  20. Click on New client secret.
  21. This section generates an app password for O365 Manager Plus. Under the Description field provide a name to identify the app to which the password belongs.
  22. Choose when the password should expire.
  23. (what happens after 1 year)
  24. Click on Add.
  25. Copy the string under VALUE and save it. You will need this later.

    azure-portal-properties-setting

  26. Now go to the Overview section in the left pane.
  27. Copy the values of Application (client) ID and Object ID and save them. You will need these values later.

    azure-portal-keys

O365 Manager Plus portal

  1. Now back to O365 Manager Plus console where you have the pop-up.

    Manual Configuration

  2. Paste the Application ID and Application Object ID values you had copied in Step 27 in the respective fields.
  3. In App Secret Key paste the value you had copied in Step 25.
  4. Click on Update.
  5. You can now see that the Rest API Access is Enabled for the account you configured.

 

Request Support

Need further assistance? Fill this form, and we'll contact you rightaway.

A holistic Office 365 administration solution