Skip to end of banner
Go to start of banner

Troubleshoot the CLI client impacted by the GDPR - Cloud Platform changes

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 19 Next »

Problem statement

As part of the Platform changes related to GDPR, the CLI client is seeing a 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
App version8.4.0

Cause

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 must upgrade their CLI client to the latest version available as GDPR platform changes rollout, to access Cloud platforms. The Username and Password parameters accept only user email address and token respectively. To generate the token:

  1. Click on your profile avatar on the bottom left corner.

  2. Click on Profile --> Manage your account --> Security

  3. 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)

  4. Then click Create an API token. A token is created that needs to be copied and kept securely.

Perform the following to avoid the error:

  1. Download CLI client 8.5.0 from this location.

  2. Enter the following:

    • Username - User email address

    • Password - Token

Example for the Linux environment: 

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 "$@"


Example for the Windows environment:

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" %*


  • No labels