Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

getProfile #

Gets a security profile.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/profiles/<_id>
Method: GET

Other protocols #

{
  "controller": "security",
  "action": "getProfile",
  "_id": "<profileId>"
}

Arguments #

  • _id: profile identifier

Response #

Returns the queried profile information:

  • _id: profile identifier
  • _source: profile content
{
  "status": 200,
  "error": null,
  "result": {
    "_id": "<profileId>",
    "_source": {
      "policies": [
        {
          "roleId": "<roleId>"
        },
        {
          "roleId": "<roleId>",
          "restrictedTo": [
            {
              "index": "<index>"
            },
            {
              "index": "<index>",
              "collections": [
                "<coll1>",
                "<coll2>"
              ]
            }
          ]
        }
      ]
    },
    "action": "getProfile",
    "controller": "security",
    "requestId": "<unique request identifier>"
  }
}