1. Go to Microsoft Azure portal at https://portal.azure.com/.
  2. In the App registrations section, select your application.
  3. On the left, click API permissions.
  4. Click + Add a permission.
  5. Click Microsoft Graph, then click Delegated permissions.
  6. Select the following:
    • email
    • offline_access
    • openid
    • profile
    • User.Read
  7. Click Add permissions.