[
https://issues.apache.org/jira/browse/RANGER-5363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18105944#comment-18105944
]
Rakesh Gupta commented on RANGER-5363:
--------------------------------------
Rebased PR with the latest master branch and resolved all merge conflicts.
Ready for review
> Filtering users by userRoleList parameter does not work in /xusers/users API
> ----------------------------------------------------------------------------
>
> Key: RANGER-5363
> URL: https://issues.apache.org/jira/browse/RANGER-5363
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Reporter: Rakesh Gupta
> Assignee: Rakesh Gupta
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)