API Tokens get removed from Client controllers or Managed controllers

Article ID:360029355552
2 minute readKnowledge base

Issue

My user API tokens in the controller are disappearing after some time of being created.

Resolution

By default, API Tokens are synchronized from Operations Center to the client controllers and/or managed controllers. This means that if your users are defining their API Tokens at the controller level, they will be wiped out with the information stored at Operations Center level when the synchronization process happens.

When selected, this option will synchronize the user’s name, description, API Tokens and other properties with the user’s record in the Operations Center. The synchronization takes place when Jenkins queries the full user details from the security realm; which typically occurs during a log in operation. This will result in the API token being removed from the controller using the ones defined in the Operations Center instead.

Create API tokens at the Operations Center level

API tokens could be created at the Operations Center level. For this, go to your Operations Center, select your name and click configure again. Then click Add new Token to create a new API token at the Operations Center level.

Workarounds

As previously suggested, we could disable the synchronization of a particular user at the controller level. Notice that the synchronization will still happen for the rest of the users as long as they have enabled the Synchronize details on login in the user at the controller level.

Since 2.401.2.3 this workaround does not work when Using single sign-on (SSO) in operations center and is pending a fix in a future product release.

Tested products/plugins version

The latest update of this article was tested with: