Core
API v2.x
2

getUserStrategies #

Gets the available authentication strategies of a user.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/users/<_id>/_strategies
Method: GET

Other protocols #

Copied to clipboard!
{
  "controller": "security",
  "action": "getUserStrategies",
  "_id": "<kuid>"
}

Arguments #


Response #

Returns an object with the following properties:

  • strategies: array containing all the available authentication strategies on the requested user.
  • total: total number of strategies found for that user.
Copied to clipboard!
{
  "status": 200,
  "error": null,
  "result": {
    "strategies": ["local"],
    "total": 1
  }
}