[
https://issues.apache.org/jira/browse/RANGER-2572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17608091#comment-17608091
]
Ramachandran edited comment on RANGER-2572 at 9/22/22 7:49 AM:
---------------------------------------------------------------
[~bharath028] [~pradeep] [~madhan] can you please elaborate a bit about what
all the rest API's currently we are using to
{code:java}
PUT /xusers/secure/users
PUT /xusers/secure/users/{id} -- is this the api ?{code}
As well as we are not honouring pathparameter \{id} in the
/xusers/secure/users/\{id} inside our code .
{code:java}
@PUT
@Path("/secure/users/{id}")
@Produces({ "application/json", "application/xml" })
public VXUser secureUpdateXUser(VXUser vXUser) {
bizUtil.checkUserAccessible(vXUser);
return xUserMgr.updateXUser(vXUser);
} {code}
Do we need to keep this id in the uri or needs to be removed?
was (Author: JIRAUSER295265):
[~bharath028] [~pradeep] [~madhan] can you please elaborate a bit about what
all the rest API's currently we are using to
{code:java}
PUT /xusers/secure/users/{id}. -- is this the api ?{code}
> Unable to update/add user to group with userName using rest API.
> ----------------------------------------------------------------
>
> Key: RANGER-2572
> URL: https://issues.apache.org/jira/browse/RANGER-2572
> Project: Ranger
> Issue Type: New Feature
> Components: Ranger
> Affects Versions: 1.2.0
> Reporter: bharath
> Assignee: Ramachandran
> Priority: Critical
> Labels: features
>
> Hi Team,
> # We have a requirement to add/update/delete a user to a group in ranger
> through rest API. I see that there are rest API available using the userId
> but not through userName. Is there any way we can do this ??
> # Also while creating a user the id that is given in JSON request is not
> taken, instead ranger creates its own id for the user and gives it back as a
> response. Is there a way to force ranger the id that I provide. But even this
> id is not seen anywhere in the ranger UI.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)