[ 
https://issues.apache.org/jira/browse/RANGER-5363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rakesh Gupta updated RANGER-5363:
---------------------------------
    Description: 
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 all 
users instead of filtering based on the specified role.

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.

  was:
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 all 
users instead of filtering based on the specified role.

Steps to Reproduce:
1) Call the API with a specific role filter, for example:
GET /service/xusers/users?userRoleList=ROLE_SYS_ADMIN

2) 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.


> 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
>
> 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 
> all users instead of filtering based on the specified role.
> 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)

Reply via email to