Adding the web app registration in Azure AD

  1. In the Azure portal, select Azure Active Directory > App registrations.
  2. Click New application registration.
  3. Specify this information:
    Name
    Specify a name for the app; for example, Service Portal.
    Application type
    Specify Web app / API.
    Sign-on URL
    Specify the base URL for the portal Home page; for example, https://serviceportal.acme.com.
  4. Click Create.
  5. In the list of app registrations, select this new app.
  6. Click Settings.
  7. Under General, click Reply URLs.
  8. Specify the portal site URL, including the port and site, if applicable. For example, specify https://host:port/site.
    Note: You can specify one reply URL for each portal site that is being supported.
  9. Click Save.
  10. Under API Access, click Required Permissions.
  11. Click Add.
  12. Click Select an API.
  13. Click Microsoft Graph and click Select.
  14. In the Application Permissions section, select Read directory data and click Select.
  15. Click Done.
  16. Click Grant Permissions and click Yes.