Skip to main content
Question

Control Room managed - Oauth connection disables after a few minutes

  • May 3, 2024
  • 7 replies
  • 470 views

Forum|alt.badge.img+11

Hi everyone,

 

I have managed to configure a Control Room managed Oauth connection, allowing my bots to connect to Sharepoint

 

However after roughly 20-30 minutes it fails with the error message :

{"code":"cv.validation.credential.not.found","correctiveAction":"It may have been renamed or deleted. If the problem persists, please contact your system administrator.","details":"","message":"The credential wasn't found."} 

I have configured in Azure that the connection should expire after 2 days, not after a few minutes. Changing the settings in Azure does not seem to have consequences in the Control Room.

I then receive a message in the evening (always at 20:40, CET ) notifying me that “ A Oauth shared token for Custom EkinopsPRODnew has expired. “

 

Does anyone know how to change the duration of the token for Oauth in the Control Room ?

 

 

7 replies

Forum|alt.badge.img+3
  • Cadet | Tier 2
  • May 22, 2024

Hi Augustin,

How did you resolve the issue mentioned above? I'm encountering the same problem during authentication.

 

{"code":"cv.validation.credential.not.found","correctiveAction":"It may have been renamed or deleted. If the problem persists, please contact your system administrator.","details":"","message":"The credential wasn't found."}

 


Forum|alt.badge.img+11
  • Author
  • Flight Specialist | Tier 4
  • May 22, 2024

Hi Diva 6381,

 

The problem has not been solved to this day.

Did you find solution there : https://docs.automationanywhere.com/bundle/enterprise-v2019/page/integration-oauth-control-room.html and  https://apeople.automationanywhere.com/s/article/Automation-360-cv-validation-credential-not-found-Cannot-create-OAuth-related-locker-starting-with-OAUTH ?

In my case, it works correctly for a few minutes, then fails.

But I remember that the same message appears when there is a security configuration error.

 


Forum|alt.badge.img+1
  • Cadet | Tier 2
  • February 9, 2025

Hello ​@Augustin , ​@Diva 6381, I’m facing the same issue to keep my token from refreshing every few minutes. I am trying to access GMail Oauth API and this is a blocker for me. Were you able to resolve this error?


Forum|alt.badge.img+11
  • Author
  • Flight Specialist | Tier 4
  • February 10, 2025

Hello ​@Augustin , ​@Diva 6381, I’m facing the same issue to keep my token from refreshing every few minutes. I am trying to access GMail Oauth API and this is a blocker for me. Were you able to resolve this error?

Hi ​@AKPRTH  sadly I did not find a solution. I used the bot-managed connection and not the control-room managed connection.


Forum|alt.badge.img+8

Forum|alt.badge.img+4
  • Navigator | Tier 3
  • September 30, 2025

Hello,

 

I have the same issue as described above. I have checked KB article that shared above and we have scope determined as https://<domain-name>/AllSites.Manage, offline_access, openid in our oauth configuration. However every day I need to re-test oauth connection to switch from “Expired" to “Active” shared token status and after I can run the bot successfully only once - it needs to be within a couple of minutes time range. After the connection does not work anymore even though the oauth connection shows Active Status. Can anyone please help? Thank you


Forum|alt.badge.img
  • Cadet | Tier 2
  • October 7, 2025

Hello,

 

I have the same issue as described above. I have checked KB article that shared above and we have scope determined as https://<domain-name>/AllSites.Manage, offline_access, openid in our oauth configuration. However every day I need to re-test oauth connection to switch from “Expired" to “Active” shared token status and after I can run the bot successfully only once - it needs to be within a couple of minutes time range. After the connection does not work anymore even though the oauth connection shows Active Status. Can anyone please help? Thank you

Please try modifying the scope to  AllSites.Manage offline_access and then click on test connection to see if it fixes the issue.