User.approve - REST API

Overview

Changes a user's approval_status to 'approved', thus making it possible for that user to log in, provided that other conditions are fulfilled, e.g. user connects from an allowed IP address. It is not an error to approve an already approved user.

Only super-users may approve or reject other users.

  • HTTP method: POST
  • URL path: /zato/sso/user/approve

Request

NameDatatypeOptionalNotes
uststring---Current user's session token (UST) - must belong to a super-user
current_appstring---Name of application that the call is attempted from
user_idstring---ID of the user to approve

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

Usage

$ curl -XPOST localhost:17010/zato/sso/user/approve -d '
  {
    "ust": "gAAAAABanYJQziYsPwDYOFJSR5...",
    "user_id": "zusr73fzk8ncns8vd98dhpt0zjbese",
    "current_app": "CRM"
  }
  '

  {
  "cid": "639c68ece3f231a3dce2d803",
  "status": "ok"
  }
$