getUserRights #
Gets the detailed rights granted to a user.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/users/<_id>/_rights
Method: GET
Other protocols #
{
"controller": "security",
"action": "getUserRights",
"_id": "<kuid>"
}
Arguments #
_id
: user kuid
Response #
Returns a hits
array of objects. Each object is a security right granted or denied to the user:
controller
: impacted Kuzzle controlleraction
: impacted controller actionindex
: index namecollection
: collection namevalue
: tell if access isallowed
ordenied
. If closures have been configured on the detailed scope, the value isconditional
.
{
"status": 200,
"error": null,
"result": {
"hits": [
{
"controller": "auth",
"action": "login",
"value": "allowed"
},
{
"controller": "document",
"action": "get",
"index": "foo",
"collection": "bar",
"value": "allowed"
},
{
"controller": "document",
"action": "create",
"index": "foo",
"collection": "bar",
"value": "denied"
}
]
}
}
Edit this page on Github(opens new window)