Accounts

Account defines the privileged account existing on the monitored server. It specifies the actual login credentials, user authentication mode: anonymous (without user authentication), regular (with login credentials substitution) or forward (with login and password forwarding); password changing policy as well as the password changer itself.

Data structures

AccountModel
Parameter Type Description
accountpasswordchanger_set PasswordChangerAttributes Password Changer settings
blocked bool  
credentials AccountCredentialsAttributes Required if type == regular || forward
dump_mode string{all, none, raw, noraw} Session recording options
id bigserial Object Identifier
name string Unique account name. Required
ocr_enabled bool Enable OCR option
ocr_lang string Provide the language for the OCR process
hotseat bool Enable to be informed about existing connections via the User Portal. Available for the server with protocol == rdp
servauth bool Authentication against server. Available for type == forward when the server’s protocol == ssh || protocol == rdp and security == nla. Default value == false
forward_domain bool Forwarding domain. Available for type == forward. Default value == true when the server’s protocol == rdp, otherwise default value == false
password_lastupdate DateTime  
password_change_request DateTime  
password_checkout_time_limit Time (hh:mm:ss) Duration of the secret checkout
password_recovery bool Enable a password verifier to automatically trigger a password changer. Available for type == regular
retention int Delete session data after {{int}} days. Min value = 1, Max value = 2147483647
server    
      id int required
      name string required
type string{anonymous, forward, regular} required
AccountCredentialsAttributes
Parameter Type Description
domain string  
login string required
method string{account, password, ssh-key} required if type == regular
secret string
  • write only
  • required if method == password
password_change_policy   required if type == regular
      id int required
      name string required
private_key string
  • write only
  • required if method == ssh-key
public_key string read only
PasswordChangerAttributes
Parameter Type Description
password_changer_type string{change, verify}  
id string  
position int required
timeout int required
AccountSafeListenerAssignment
Parameter Type Description
account_id int
  • write only
  • required
account Read only  
      id int  
      name string  
listener_id int
  • write only
  • reqiured
listener Read only  
      id int  
      name string  

Creating an account

Request

Method
POST
Path
/api/system/accounts
Headers
Content-Type: Application/JSON
Body
AccountModel

Possible Response

Status
201 CREATED
Headers
Content-Type: Application/JSON
Body
AccountModel
Description
Object successfully created. Resultant object's attributes
are included in response body.

Possible Response

Status
400 BAD REQUEST
Headers
Content-Type: Application/JSON
Body
ValidationErrors
Description
Validation didn't pass.

Retrieving accounts list

Request

Method
GET
Path
/api/system/accounts

Note

Results pagination

Every GET request, which returns a collection of objects can be optionally paginated. To achieve it add a pagination parameter to the request path:

/api/system/objects?page=3&page_size=10
Pagination parameters
page int
page_size int

Possible Response

Status
200 OK
Headers
Content-Type: Application/JSON
Body
[
AccountModel,
...
]

Retrieving an account

Request

Method
GET
Path
/api/system/accounts/:account_id

Possible Response

Status
200 OK
Headers
Content-Type: Application/JSON
Body
AccountModel

Possible Response

Status
404 NOT FOUND
Description No account with given id.

Modifying accounts

Request

Method
PUT, PATCH
Path
/api/system/accounts/:account_id

Possible Response

Status
200 OK
Headers
Content-Type: Application/JSON
Body
AccountModel

Possible Response

Status
400 BAD REQUEST
Headers
Content-Type: Application/JSON
Body
AccountModel

Possible Response

Status
404 NOT FOUND
Description No account with given id.

Deleting an account

Request

Method
DELETE
Path
/api/system/accounts/:account_id

Possible Response

Status
204 NO CONTENT

Possible Response

Status
404 NOT FOUND
   
Description Object with specified identifier was not found.

Retrieving users allowed to manage accounts

Request

Method
GET
Path
/api/system/accounts/:account_id/granted_users

Note

Results pagination

Every GET request, which returns a collection of objects can be optionally paginated. To achieve it add a pagination parameter to the request path:

/api/system/objects?page=3&page_size=10
Pagination parameters
page int
page_size int

Possible Response

Status

200 OK

Headers
Content-Type: Application/JSON
Body
[
     {
             'name': 'username'
             'id': 'id'
     }, ...
]

Granting management privileges

Request

Method
POST
Path
/api/system/accounts/:account_id/granted_users
Body
{
user_id: user_id
}

Possible Response

Status  
  201 CREATED

Revoking management privileges

Request

Method
DELETE
Path
/api/system/accounts/:account_id/granted_users/:user_id

Possible Response

Status
204 NO CONTENT

Possible Response

Status
404 NOT FOUND

Retrieving account-safe assignments list

Request

Method
GET
Path
/api/system/accounts

Note

Results pagination

Every GET request, which returns a collection of objects can be optionally paginated. To achieve it add a pagination parameter to the request path:

/api/system/objects?page=3&page_size=10
Pagination parameters
page int
page_size int

Possible Response

Status
200 OK
Headers
Content-Type: Application/JSON
Body
[
     AccountSafeAssignmentModel,
     ...
]

Creating an account-safe assignments

Request

Method
POST
Path
/api/system/safes/:safe_id/accounts
Body
AccountSafeAssignmentModel

Possible Response

Status
201 CREATED
Headers
Content-Type: Application/JSON
Body
AccountSafeAssignmentModel

Possible Response

Status
400 BAD REQUEST
Headers
Content-Type: Application/JSON
Body
ValidationErrors

Possible Response

Status
404 NOT FOUND

Deleting an account-safe assignment

Request

Method
DELETE
Path
/api/system/safes/:safe_id/accounts/:account_id

Possible Response

Status
204 NO CONTENT

Possible Response

Status
404 NOT FOUND