Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-45502

Response of GET /rest/api/2/user/properties always empty

    XMLWordPrintable

    Details

      Description

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

      Summary

      As described here, a new REST API call was introduced in JIRA 7.0 that returns properties for a given user. However, it's always returning an empty array, no matter how many properties there are.

      Expected behaviour

      Return a set of properties for the given user.

      Actual behaviour

      An empty array is returned, which means no properties have been found for the given user.

      Example

      Call

      localhost:8080/rest/api/2/user/properties?username=admin
      

      Response

      {"keys":[]}
      

      Steps to Reproduce

      1. Add a key-value pair under properties on a user profile in JIRA;
      2. Try to list the property keys for this user with the below REST API call;
        http://<jira-url>/rest/api/2/user/properties?username=myuser
        
      3. Observe the response returned is empty;

      Workaround

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              piegsa Jens Piegsa
              Votes:
              6 Vote for this issue
              Watchers:
              16 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: