server_account_access

Requests access to a computer.

Path:
/lib/jobs/server_account_access.js

Parameters:

NameTypeDescription
PVIDStringThe ID of the account.
ReasonStringThe reason for the request.
AccessTypeStringThe type of access requested.
RequestedOptionsObjectAdditional options specific to the request type.
RequestedOptions.AssignmentTypeStringThe type of time length for the requested access.
RequestedOptions.StartTimeStringThe date/time for when the access it to start.
RequestedOptions.EndTimeStringThe date/time for when the access it to end.

Example Request:

POST /JobFlow/StartJob

{  
   "script":"@/lib/jobs/server_account_access.js",
   "args":{  
      "PVID":"98765....",
      "Reason":null,
      "AccessType":"Login",
      "RequestedOptions":{  
         "AssignmentType":"window",
         "StartTime":"Fri, 02 Feb 2018 20:11:00 GMT",
         "EndTime":"Fri, 02 Feb 2018 21:11:00 GMT"
      }
   }
}

Example Response:

{
    "success": true,
    "Result": "0acb9ea....",
    "Message": null,
    "MessageID": null,
    "Exception": null,
    "ErrorID": null,
    "ErrorCode": null,
    "InnerExceptions": null
}