This script grants READ, WRITE and ADMIN permissions to a user, for the specified project. The script uses personal access tokens in place of passwords to authenticate when using the Bitbucket Server REST API. It uses cURL to send PUT(update) request to update username and the type of access to be granted.
- Create a personal access token and store it locally in a token.txt file
- Run the script (./script.sh)