Revoked users are returned in the Get project role for project REST API

XMLWordPrintable

    • 11
    • Severity 3 - Minor
    • 10

      Issue Summary

      When viewing the usage report for a project role the usage also counts the users who don't have product access)

      This confuses Jira admins as it does not add value to show users without product access in the report.

      Users that don't have access anymore to the instance are still returned in the Get project role for project REST API.

      Steps to Reproduce

      1. Add a user to a project and role
      2. Revoke access to that user to the instance
      3. Call get project role for project

      Expected Results

      Revoked users are not returned

      Actual Results

      Revoked users are returned

      Workaround

      To exclude inactive users, we can make use of excludeInactiveUsers boolean

      Example

      • 'https://your-domain.atlassian.net/rest/api/3/project/{projectIdOrKey}/role/{id}?excludeInactiveUsers=true'

            Assignee:
            Varad Pingale (Inactive)
            Reporter:
            Mateusz Szerszyński (Inactive)
            Votes:
            10 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated: