Audit log behavior inconsistency between UI and API when adding user to teams

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 10.130.0
    • Affects Version/s: 10.126.3
    • Component/s: REST API

      Issue Summary

      There is an inconsistency between the UI and the API. The API only allows users to be added to teams from the Users endpoint and only creates and audit log entry for the User to Team relationship. While doing so, it follows the general audit log format we have across the API and logs old list of teams and new list of teams (from - to)

      This can result in massive audit log entries.

      Steps to Reproduce

      1. Add a user to a team/program/portfolio using the users API endpoint
      2. Do the same action in the UI

      Expected Results

      The audit log entries would be the same for both actions

      Actual Results

      The UI action generates no entries, while the API action generates a massive list of audit log entries

      Workaround

      None

            Assignee:
            Yannick Genin
            Reporter:
            Todd Hall
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: