[ 
https://issues.apache.org/jira/browse/RANGER-5624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18085168#comment-18085168
 ] 

Krishna Chaitanya Muttevi commented on RANGER-5624:
---------------------------------------------------

If the masking of the field is necessary we can 
1. Get id in the xuserrest
2. And call the {{ xUserMgr.getXGroup(id)}}
so that we can align the functionality of both endpoints

> Inconsistent masking of updatedBy field in 
> /xusers/groups/groupName/{group_name} API compared to /xusers/groups/{id}
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-5624
>                 URL: https://issues.apache.org/jira/browse/RANGER-5624
>             Project: Ranger
>          Issue Type: Improvement
>          Components: admin
>    Affects Versions: 3.0.0
>            Reporter: Krishna Chaitanya Muttevi
>            Priority: Major
>         Attachments: image-2026-06-01-14-52-31-185.png
>
>
> There is an inconsistency in the masking behavior of the {{updatedBy}} field 
> in the {{VXGroup}} response across group retrieval APIs. When a group is 
> fetched using {{{}/xusers/groups/\{id}{{}}}}, the {{updatedBy}} field is 
> masked as expected. However, when the same group is retrieved using 
> {{{}/xusers/groups/groupName/\{group_name}{{}}}}, the {{updatedBy}} field is 
> returned with its actual value instead of being masked.
> For example, calling {{GET /service/xusers/groups/groupName/public}} returns 
> {{{}"updatedBy": "Admin"{}}}, whereas {{{}GET /service/xusers/groups/{id{}}}} 
> returns a masked value (e.g., {{{}"******"{}}}). This results in inconsistent 
> API behavior and leads to unintended exposure of user-related metadata 
> through one endpoint while it remains masked in another.
> In below image the underlined red lines would show the true issue and 
> mismatch in masking field of vXGroup.
> !image-2026-06-01-14-52-31-185.png|width=915,height=591!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to