In Bitbucket Server 5.5 personal access tokens have been introduced. They can be used to replace passwords over https, or to authenticate using the Bitbucket Server REST API over Basic Auth. However the tokens cannot be used for administrative access REST endpoints like /rest/access-tokens/latest/users/admin or
The error message: Tokens may not have the following permission: ADMIN
Please provide the access tokens with the global ADMIN permissions.
Using tokens for the system management automation is more comfortable and secure rather than login-password authentication.