Skip to main content

List the administrators in a computer's inventory

GET 

/computers/:computerId/admins

Returns the accounts in the computer's admin inventory, merged with accounts that currently hold an active JITA session (flagged active: true with expiring set; accessViaGroup is the group document when access came through a group). Active sessions for accounts not in the inventory are appended as additional entries with persistent: false; those entries carry only domain, domainandname, sidusage, user, svc_acct, sid, onHost, active, session_initiated, expiring, userId and persistent. The list is a bare array and is not paged: limit and page are ignored.

The route is open to all roles, but a caller whose role is user must be a system administrator of the computer (direct entry or via a group); otherwise 403. A user-role caller who is a system administrator sees the whole list.

Required role: superadmin or admin; user only if a system administrator of this computer.

Request​

Responses​

Administrators of the computer.