RakeshGuptaDev opened a new pull request, #798:
URL: https://github.com/apache/ranger/pull/798

   
   ## What changes were proposed in this pull request?
   
   When invoking the REST API
   
   GET /service/xusers/users?userRoleList=ROLE_SYS_ADMIN
   
   The userRoleList search filter is not applied as expected. The API returns 
users of all roles instead of filtering by the specified role, even when tested 
using an admin user.
   
   Steps to Reproduce:
   1) Log in as an admin user.
   2) Call the API with a specific role filter, for example:
   GET /service/xusers/users?userRoleList=ROLE_SYS_ADMIN
   3) Observe that the response includes users of all roles instead of only 
those with the ROLE_SYS_ADMIN role.
   
   Expected Behavior:
   The API should return only users matching the specified userRoleList value.
   
   Actual Behavior:
   The API ignores the userRoleList parameter and returns all users.
   
   ## How was this patch tested?
   
   Verified the userRoleList filter correctly restricts results.
   
   Steps:
   
   Call GET /service/xusers/users?userRoleList=ROLE_SYS_ADMIN.
   
   **Expected Result**: The response list is correctly filtered and contains 
only users possessing the ROLE_SYS_ADMIN role.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to