Issue Summary

      When a users that is Object Schema Manager (but not an Insight Administrator) tries to add a user to any Object Schema role, a pop-up is raised to the browser with the message:

      The Jira server was contacted but has returned an error response. We are 
      unsure of the result of this operation. 
      REST API
      http://localhost:48132/j8132/rest/insight/1.0/user/picker?
      showAvatar=true&query=t&exclude=JIRAUSER10200&exclude=JIRAUSER10000&_=1615486692378 
      
      Status code: 403
      
      {"errorMessages":["Sorry, you do not have permission to perform this action.. PermissionInsightException: User JIRAUSER10200 
      didn't have correct permission (admin)."],"errors":{}}

       

      Steps to Reproduce

      1. Insight Plugin 8.7.6; 8.7.10
      2. Log in Jira a user that is Object Schema Manager (but not Insight Administrator);
      3. Go to Insight > Select the object schema > Configure > Roles;
      4. Try to add any user to any one of the three roles;

      Expected Results

      Since the user is an Object Schema Manager, it was expected that he/she would be able to manage the roles of the Object Schema and add the user to any of the available roles.

      Actual Results

      Pop-up with error message appears:

      The Jira server was contacted but has returned an error response. We are unsure of the result of this operation. 

      Workaround

      Use a user that is an Insight Administrator to define the users in each role of the Object Schema.

          Form Name

            [JSDSERVER-7173] Object Schema Managers are not able to add users in the roles

            Sylwia Mikołajczuk made changes -
            Fix Version/s New: 4.18.1 [ 96093 ]
            Fix Version/s Original: 4.18.0 [ 95195 ]
            Sylwia Mikołajczuk made changes -
            Labels Original: insight-dc-bug New: 4.18.0-pd insight-dc-bug
            SET Analytics Bot made changes -
            UIS Original: 27 New: 34
            Kunal Kanojia made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Kunal Kanojia made changes -
            Fix Version/s New: Insight 8.7.11 [ 96690 ]
            Alex Cooksey made changes -
            Fix Version/s New: 4.18.0 [ 95195 ]
            Bugfix Automation Bot made changes -
            Support reference count Original: 5 New: 6
            Aditya M made changes -
            Assignee Original: Aditya M [ amukkamala ]
            SET Analytics Bot made changes -
            UIS Original: 23 New: 27
            Bugfix Automation Bot made changes -
            Support reference count Original: 4 New: 5

              Unassigned Unassigned
              e92f396700a6 Henrique Girardi (Inactive)
              Affected customers:
              12 This affects my team
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: