UserAttr.names - REST API

Overview

Returns a list of all attribute names defined for a user.

  • HTTP method: GET
  • URL path: /zato/sso/user/attr/names

Request

NameDatatypeOptionalNotes
uststring---Current user's session token (UST)
current_appstring---Name of application that the call is attempted from
user_idstringYesID of the user to return a list of attributes of

Response

NameDatatypeOptionalNotes
cidstring---Correlation ID assigned to request
statusstring---Overall status code
sub_statuslistYesReturned only if status is not "ok", a list of error or warning codes
resultlist---Names of all attributes, if any, defined for a user

Usage

$ curl -XGET localhost:17010/zato/sso/user/attr/names -d '
  {
    "current_ust": "gAAAAABavmAV3rw6fQUS-HgRE...",
    "current_app": "CRM",
    "user_id": "zusr6fh6fdgd4997ksjkpx7qnk659q"
  }
  '

  {
    "status": "ok",
    "cid": "22fdd109d125f302d3c862db",
    "result": ["my-attribute", "my-attribute2", "my-attribute3"]
  }