Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-47372

rest/api/2/user/permission/search is broken for global permissions

    XMLWordPrintable

Details

    Description

      Summary

      Unable to search for global permissions using /rest/api/2/user/permission/search.

      As has been said in JRA-43075 , this endpoint is important to Atlassian Connect vendors who want to do things like check the permissions of a given user

      The documentation for the rest/api/2/user/permission/search endpoint links to this list of all possible permissions, which includes global permissions like ADMINISTER.

      Steps to Reproduce

      1. Run the REST calls against /rest/api/2/user/permission/search
        1. http://localhost:7021/jira702/rest/api/2/user/permission/search?permissions=SYSTEM_ADMIN
        2. http://localhost:7021/jira702/rest/api/2/user/permission/search?permissions=SYSTEM_ADMIN&projectKey=<validPkey>

      Expected Results

      Returns users who have this global permission

      Actual Results

      1. First call returns the following
        {"errorMessages":["No project or issue key was provided"],"errors":{}}
        • A project or issue key is required to be provided which doesn't make sense in a global permission context
      2. Second call returns the following
        {"errorMessages":["Internal server error"],"errors":{}}

      Notes

      Other known results of the second command

      Workaround

      No known workaround

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jhazelwood James Hazelwood
              Votes:
              20 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated: