Microsoft Office - Generate and Refresh Token

This bot is based in the Microsoft identity platform and the Microsoft Graph API. It generates an OAuth2 access token requesting it to It uses a “grant_type” parameter with “authorization_code” (authorization code workflow) type for first time token generation. Once the token is generated within the first execution of the bot, it will use a “grant_type” with “refresh_token” in order to refresh the token during next executions.

You can use this bot to:

  • Generate API Token
  • Refresh the token for next executions


 This task is compatible with:

  • Automate Ultimate 11.2 and greater
  • Automate Plus 11.2 and greater
  • Automate Desktop 11.2 and greater
Automate Bots are the result of our experience training and implementing Automation initiatives for our customers. All the configurations are maintained by Fortra Professional Services. If you need our help to configure a bot, please complete the form here.