Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-62145

User response does not include list of groups user is part of

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.18, 4.19, 4.20
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

        While working with the OCP, we noticed that the user response object returned from the backend does not contain the list of groups that the user is a member of.
      This makes it difficult for us to correctly apply role-based approval for ManualApprovalGate in the Pipelines Operator. The expectation is that when fetching user details, the response should include both:
      
      
      User attributes (e.g., username, uid)
      
      
      Group membership (list of groups the user belongs to)
      
      
      Currently, only user details are returned, and groups is null.

      Version-Release number of selected component (if applicable):

          

      How reproducible:

          

      Steps to Reproduce:

          1. Create a user ( or users ) and add them to a group
          2. Navigate to User Management > Users > Click on any user
          3. Navigate to YAML tab and groups mentioned there is null
          4. Try manually adding group to that user directly from YAML and click on Save
          5. Notice the payload 
          6. Notice the response 
      
      
       
          

      Actual results:

          User response has groups = null

      Expected results:

          User response should have list of groups which they are part of

      Additional info:

          

              rh-ee-kragarwa Krish Agarwal
              rh-ee-apalit Anwesha Palit
              None
              None
              Rahul Gangwar Rahul Gangwar
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: