1. Open to register a new app.

    This tool requires that the redirect_uri =

  2. Switch to Certificates & secrets tab, create a client secret , copy and paste it to the input box below.

  3. Switch to API permissions tab, add permissions you need.

    For OneDrive Index purpose, select following permssions: offline_access, Files.Read, Files.Read.All .


4. Authorize for code
5. Exchange Access Token
Refresh Token