Skip to content

Conversation

@RakeshGuptaDev
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant