Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-12105

Delegated Admin UI Should Only Display Supported Fields in grid

    XMLWordPrintable

    Details

    • Target Version/s:
    • Verified Version/s:

      Description

      Currently the delegated admin ui only supports fields that are of type string, number, and boolean. However, via REST an admin can still create an internal role with a privilege on a field that is another type such as "object". When a delegated user navigates to the delegated admin UI, the grid shown should only display fields that our UI supports.

      Steps to reproduce:
      1. create an internal role on managed/user with an ability to edit preferences such as:

      {    "name": "test",
          "description": "test role one",
          "temporalConstraints": null,
          "condition": null,
          "privileges": [
              {
                  "name": "testPriv1",
                  "description": null,
                  "path": "managed/user",
                  "permissions": [
                      "VIEW", "UPDATE"
                  ],
                  "actions": null,
                  "filter": null,
                  "accessFlags": [
                      {
                          "attribute": "userName",
                          "readOnly": false
                      },
                      {
      		          "attribute": "preferences",
      		          "readOnly": false
      		        }
                  ]
              }
          ]
      }

      2. assign that role to a delegated admin. 

      3. sign in as that delegated admin 

      Current results:

      The UI displays the preferences field in the grid even though we do not support editing preferences in the UI. Since we do not support this, the values appear empty for each user even if they have a value present for that field. Additionally, it is confusing since when they go to edit the user, the preferences field is not displayed at all.

       

      Expected results:
      The grid should only show supported field types

        Attachments

          Activity

            People

            Assignee:
            huck.elliott Huck Elliott
            Reporter:
            krismy.alfaro Krismy Alfaro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: