getProfileRights #
Gets the detailed rights configured by a security profile.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_profiles/<_id>/_rights
Method: GET
Other protocols #
{
"controller": "security",
"action": "getProfileRights",
"_id": "<profileId>"
}
Arguments #
_id
: profile identifier
Response #
Returns a hits
array of objects. Each object is a security right described by the security profile:
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": {
// An array of objects containing the profile rights
"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)