Skip to main content

Request just-in-time administrator access to a computer

GET 

/computers/:computerId/access

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Deprecated: use POST /computers/{computerId}/access instead; it takes the same parameters in the request body.

Creates a JITA access request that adds the caller (or, for an admin, another user) to the local administrators of the computer. The request is queued for a worker; for a request made for yourself, poll GET /queue/pending/{systemId} to follow it. Until a worker picks it up, the request stays pending.

Parameters are read from the query string on GET and from the request body on POST (JSON or urlencoded). The POST form is functionally identical, and a POST with no body at all is accepted (all defaults). t sent as a numeric string in a JSON body ("30") is accepted.

Who can call it

  • Any authenticated role (superadmin, admin, user) may request access for themselves, provided they are a system administrator of the computer: a direct entry in the computer's admin inventory, or a member of a group in it (the request then records accessViaGroup). Otherwise the response is 403.
  • The built-in secureone account is not a directory user, so it gets 422 User not found here. A superadmin token that belongs to a real directory user works for self requests like any other role.
  • Requesting on behalf of another user (userId differs from the caller) requires the caller's role to be exactly admin. user and superadmin tokens get 403 (checked before the target is looked up). A userId equal to the caller's own id is a self request. For an admin caller, a malformed userId is 422 Invalid User ID: "<value>", an unknown one 422 User not found, and a user who is not a system administrator of the computer 422 The target user with ID '<id>' is not a system administrator.

Duration (t): a positive number of minutes. The default and maximum come from server feature settings (both 240 when unset). A value above the maximum, a negative value, or a non-integer number (for example 1.5) returns 400 InvalidQuery 'Invalid Access Duration Requested.'. A value that is absent, empty, 0, or not numeric (abc) is silently replaced with the default (this differs from the extend endpoint, which also defaults values above the maximum).

Conflicts (409): Access has already been requested to this computer. while the earlier request is pending, and Access has already been granted to this computer. once it is active. Both carry context.id and context.expires.

Linux and macOS: for macOS computers and Linux computers using Netwrix directory bridging, the access token must carry the caller's encoded password (encpass); otherwise 409 Missing encpass in token for access request. On-behalf requests are not supported for those systems (422 JITA requests on behalf of another user are not supported for Mac systems and Linux systems using Netwrix directory bridging.). A Linux computer whose bridging strategy is not secureone has neither restriction. PUT and DELETE return 405 with an empty body.

Required role: any authenticated user (on-behalf requests need admin).

Request​

Responses​

Access request queued.