Skip to end of banner
Go to start of banner

Troubleshoot steps for the CLI client impacted by the Cloud Platform Changes related to GDPR.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

Problem

CLI client is facing remote error while accessing the cloud instance.

Error Message 

Remote error: User is not authorized to perform the request. Response code: 401.

Environment

ApplicationConfluence, JIRA
Version Cloud
Add-on Version8.4.0

Cause

As per the recent GDPR guidelines issued by Atlassian, there is a change in the authentication parameters for the Cloud. The platform changes relate to removal or changes to REST APIs that are critical for CLI operations.

Solution

CLI users needing to access Cloud platforms will need to upgrade their CLI client to the latest level available as these platform changes rollout and finally complete. As part of GDPR changes the username parameter will be accepting only user email address and password as a token. So to generate the respective token please follow the steps mentioned in point 2.

In order to resolve the issue, please follow the below steps.

  1.  Download CLI client 8.5.0 from this location.

  2.  Use the Email address as username and token as password.

    A. In order to create a token: Click on your profile avatar on the bottom left corner.
    B. Click on Profile --> Manage your account --> Security
    C. Under API token, click on Create and manage API tokens (If you see a blank screen, refresh the page Or open this in another browser)
    D. Then click on the button Create an API token.

  3. A token is created that needs to be copied and kept securely. Use it as --password parameter.


Linux:

java -jar /opt/atlassian/cli/atlassian-cli-8.5.0/lib/jira-cli-8.5.0.jar --server https://your-site.atlassian.net --user "john@example.com" --token rg97a5s4agsjsd732 "$@"


Windows:

java -jar D:\CLI\atlassian-cli-8.5.0-distribution\atlassian-cli-8.5.0\lib\jira-cli-8.5.0.jar --server https://your-site.atlassian.net --user "john@example.com" --password "jLBdxOCRPvsiOdu0XiBcA088" %*



  1. Make sure the username and password are updated in all the CLI files/scripts wherever you have username and password parameters. 
  2. Please refer to Atlassian Cloud Platform Changes Impacting CLI Users for further information on GDPR changes.
  • No labels