Uploaded image for project: 'Jira Cloud (including JIRA Core)'
  1. Jira Cloud (including JIRA Core)
  2. JRACLOUD-59760

GET /rest/api/2/user/properties/{propertyKey} Returns Error 404

    XMLWordPrintable

    Details

      Description

      NOTE: This bug report is for JIRA Cloud. Using JIRA Server? See the corresponding bug report.

      Summary

      As described here, a new REST API call was introduced in JIRA 7.0 that returns the value of the property with a given key from the user identified by the key or by the id. However, it's always returning Error 404.

      Expected behaviour

      Returns the value of the property with a given key from the user identified by the key or by the id.

      Actual behaviour

      Error 404 is returned, which means user with given key or id does not exist or if the property with given key is not found.

      Example

      Call

      <instance url>/rest/api/2/user/properties/<propertyKey>?username=<user>
      

      Response

      {"errorMessages":["The property <propertyKey> does not exist."],"errors":{}}
      

      Steps to Reproduce

      1. Add a key-value pair under properties on <instance url>/secure/admin/user/EditUserProperties.jspa?name=<user>;
      2. Try to list the property value of the key for this user with the below REST API call;
        http://<jira-url>/rest/api/2/user/properties/<property key>?userKey=<user>
        
      3. Observe the response returned is code 404;

      Workaround

      At this point, there's no workaround for obtaining users' properties using a REST API call.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              cteh Ting (Chiou Ting Teh)
              Votes:
              3 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: