Abhishek created RANGER-3473:
--------------------------------

             Summary: REST API to assign permission to a user returns 400 bad 
request error
                 Key: RANGER-3473
                 URL: https://issues.apache.org/jira/browse/RANGER-3473
             Project: Ranger
          Issue Type: Bug
          Components: Ranger
            Reporter: Abhishek


When using the following [REST API 
|https://jira.cloudera.com/browse/CDPD-30363#resource_XUserREST_createXUserPermission_POST]the
 response returns a 400 bad request.
{code:java|bgColor=#f4f5f7}
<VXUserPermission> {code}
{code:java|bgColor=#f4f5f7}
 <isAllowed>1</isAllowed>{code}
{code:java|bgColor=#f4f5f7}
 <loginId>user_login_name</loginId>{code}
{code:java|bgColor=#f4f5f7}
 <moduleId>4</moduleId>{code}
{code:java|bgColor=#f4f5f7}
 <moduleName>Audit</moduleName>
{code}
{code:java|bgColor=#f4f5f7}
 <userId>user_id</userId>{code}
{code:java|bgColor=#f4f5f7}
 <userName>username</userName>
{code}
{code:java|bgColor=#f4f5f7}
 </VXUserPermission>{code}
As all the necessary fields are present in the request body, the request should 
have worked properly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to