Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Latest commit

 

History

History
59 lines (44 loc) · 1.58 KB

File metadata and controls

59 lines (44 loc) · 1.58 KB
code type title description
true
page
getUserRights
Security:getUserRights

getUserRights

Callback response example

[
  {
    "controller": "my-controller",
    "action": "my-action",
    "index": "*",
    "collection": "*",
    "value": "allowed"
  },
  {
    "controller": "another-controller",
    "action": "*",
    "index": "my-index",
    "collection": "*",
    "value": "conditional"
  }
]

Given a Kuzzle user id (kuid), retrieves the list of permissions granted to that user.


getUserRights(id, [options], callback)

Arguments Type Description
kuid String Kuzzle User Unique Identifier
options JSON Object Optional parameters
callback function Callback handling the response

Options

Option Type Description Default
queuable boolean Make this request queuable or not true

Callback Response

Returns an array of objects.

Usage

<<< ./snippets/get-user-rights-1.java