Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Microsoft SharePoint Online Connector

Microsoft SharePoint Online Connector

Generate the refresh token

Generate the refresh token

Generate the refresh token in the PostMan application.
  1. In the PostMan application, enter one of the following URLs based on your account type:
    • For a single tenant account, enter the following URL:
      https://login.microsoftonline.com/<Single_Tenant_Id_value>/oauth2/v2.0/token
    • For a multi-tenant account, enter the following URL:
      https://login.microsoftonline.com/organizations/oauth2/v2.0/token
    Replace <Single_Tenant_Id_value> with the tenant ID found in the overview section of your registered application if you are working with a single tenant account. For multi-tenant accounts, use the organizations endpoint.
  2. Select the
    POST
    method.
  3. On the
    Header
    tab, enter
    Content-Type
    in the
    Key Name
    field and
    application/x-www-form-urlencoded
    in the
    Value
    field.
  4. On the
    Body
    tab, enter the XML request in the following format:
    grant_type=authorization_code &client_id=<client_id>&client_secret=<client_secret_value> &code=<auth_code> &redirect_uri=<redirect_url>
    You need to enter the client ID and client secret that you generated when you registered the Azure application with Azure Active Directory.
  5. Click
    Send
    .
    The refresh token is generated on the
    Response
    tab.
    Ensure that you copy the refresh token and keep it handy to use when you configure a Microsoft SharePoint Online connection.

0 COMMENTS

We’d like to hear from you!