My user API tokens in the Master are disappearing after some time of being created.
By default, API Tokens are synchronized from Operations Center to the CMs and/or MMs. This means that if your users are defining their API Tokens at CM and/or MM 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 Master using the ones defined in the Operations Center instead.
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.
As previously suggested, we could disable the synchronization of a particular user at master 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 Master level.
The latest update of this article was tested with: