Getting the read-only user name

Getting the read-only user name

The read-only user name is retrieved with the GET /settings/readOnlyAdminName HTTP method and URI.

HTTP method and URI

To retrieve the read-only username, administrative or read-only permissions are required:

GET /settings/readOnlyAdminName

Syntax

Curl request syntax:

curl -u [admin]:[password] 
  http://[localhost]:8091/settings/readOnlyAdminName

Example

Curl request example:

curl -u Administrator:password
  http://10.5.2.117:8091/settings/readOnlyAdminName

Response

If successful, a response is returned with the read-only user name as payload:

"a_user"

If there is no read-only user, the following error is returned:

Requested resource not found.