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:
Curl request syntax:
curl -u [admin]:[password] http://[localhost]:8091/settings/readOnlyAdminName
Curl request example:
curl -u Administrator:password http://10.5.2.117:8091/settings/readOnlyAdminName
If successful, a response is returned with the read-only user name as payload:
If there is no read-only user, the following error is returned:
Requested resource not found.