Promote a User to Administrator - Teradata Listener

Teradata® Listener™ User Guide

Product
Teradata Listener
Release Number
2.04
Published
November 2018
Language
English (United States)
Last Update
2018-12-20
dita:mapPath
qin1538418638881.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-2910
lifecycle
previous
Product Category
Analytical Ecosystem

An administrator can promote another user to administrator.

Definition

PATCH https://listener-app-services.domain.com/v1/users HTTP/1.1

Example Request

curl \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer TOKEN" \
  -X PATCH \
  -d '{
    "site_admin": true
  }' \
  -i \
  https://listener-app-services.domain.com/v1/users/jsmith

Example Response

HTTP/1.1 200 OK
Content-Type: application/json
[
  {
    "display_name": "Smith, John",
    "email": "jsmith@example.com",
    "id": "jsmith",
    "site_admin": true,
    "member_of": "CN=ALL EMPLOYEES,OU=Groups,DC=ldap,DC=web,DC=com"
  }
]

Response Codes

Code Description
200 Users successfully returned.
401 Authorization header not found.