Last modified October 31, 2024

createUserSession

This function will generate a one-time login URL for the specified user.
Parameters
Parameter name Type Description Possible Values Example
user String REQUIRED The user name to generate a login URL for.   user=account123

Example Call JETAPI

jetbackup5api -F panelAPI -D "call=createUserSession&user={$ACCOUNT_NAME}"
success: 1
message: User session created successfully
system:
  version: 5.3.3
  version_panel: 5.3.3
  tier: EDGE
  type: Linux
  retry_ms: 0
  disableui:
  dr:
  agreement_panel:
  agreement:
  licenseIssue:
data:
  user: test
  expires: 2023-09-21T17:52:16+00:00
  url: https://test.com:3035/?token=E9aqF0atkHz4gtCKtBA9LyYTHlPU88fk-098f6bcd4621d373cade4e832627b4f6

Example Call HTTP

https://HOST_NAME:3035/?api=1&function=panelAPI&call=createUserSession&user={$ACCOUNT_NAME}