server_account_access

Requests access to a computer.

Path:
/lib/jobs/server_account_access.js

Parameters:

Name

Type

Description

PVID

String

The ID of the account.

Reason

String

The reason for the request.

AccessType

String

The type of access requested.

RequestedOptions

Object

Additional options specific to the request type.

RequestedOptions.AssignmentType

String

The type of time length for the requested access.

RequestedOptions.StartTime

String

The date/time for when the access it to start.

RequestedOptions.EndTime

String

The 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
}