Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-25529

Security management Users API does not show "externalRoles" for Crowd

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.26.1, 3.28.0
    • Fix Version/s: 3.29.0
    • Component/s: Crowd, REST
    • Labels:
    • Notability:
      3

      Description

      SYMPTOM:

      Unlike Web UI's Users page, Security management Users API does not provide same information for "externalRoles" for the Crowd users with the External role mapping.

      Example 1:
      The user detail for LDAP user "externaluser" shows "External roles" and "Granted" properly:

      And API: /service/rest/v1/security/users?userId=externaluser shows externalRoles: "nx-admin":

      [ {
        "userId" : "externaluser",
        "firstName" : "external",
        "lastName" : "user",
        "emailAddress" : "externaluser@standalone.localdomain",
        "source" : "LDAP",
        "status" : "active",
        "readOnly" : true,
        "roles" : [ ],
        "externalRoles" : [ "nx-admin" ]
      } ]
      

      Example 2:
      The web UI for Crowd user: "test-crowd" shows expected external groups and granted:

      But API: /service/rest/v1/security/users?userId=test-crowd does not show "externalRoles".

      [ {
        "userId" : "test-crowd",
        "firstName" : "Test",
        "lastName" : "Crowd",
        "emailAddress" : "test-crowd@hajigle.com",
        "source" : "Crowd",
        "status" : "active",
        "readOnly" : false,
        "roles" : [ ],
        "externalRoles" : [ ]
      } ]
      

      Roles:

      EXPECTED BEHAVIOUR:

      Users API should show same information as web UI.

      ACTUAL BEHAVIOUR:

      The externalRoles for Crowd is not working.

        Attachments

          Activity

            People

            Assignee:
            mchernikov Maksym Chernikov
            Reporter:
            hosako Hajime Osako
            Last Updated By:
            Roman Haraiev Roman Haraiev
            Team:
            NXRM - Rocket Raccoon
            Votes:
            3 Vote for this issue
            Watchers:
            11 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title