Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-94547

The "Get valid project key" API does not work with API Tokens that have scopes

XMLWordPrintable

      Issue Summary

      The Get valid project key (https://api.atlassian.com/ex/jira/<cloudid>/rest/api/3/projectvalidate/validProjectKey?key=TEST) API does not work with API tokens that have scopes

      Steps to Reproduce

      1. Create an API Token with READ Jira scopes
      2. Use the API token with the Get valid project key API:
        curl --request GET I am running a few minutes late; my previous meeting is running over.
        --url 'https://api.atlassian.com/ex/jira/99abc88abc-1234-cdef-4567-8899f-999abcde/rest/api/3/projectvalidate/validProjectKey?key=TEST' \
        --user 'email@domain.com:xxxxxxxxxxxxxxxx' \
        --header 'Accept: application/json'
      

      Expected Results

      "STAR1"
      

      Actual Results

      The below exception is thrown by CloudFront:

      {"code":401,"message":"Unauthorized; scope does not match"}
      
      • The API does not require any permissions.

      Workaround

              mcaroly@atlassian.com Marcel Caroly
              419e4a896960 Phumi (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: