CreateTicketforUser API

Creates an authentication ticket for any specified infoRouter user without requiring that user's password. Instead, a server-side trusted user password (configured in the application settings) is presented by the calling application. This enables secure server-to-server impersonation and integration scenarios.

A typical use case is a trusted back-end service that needs to act on behalf of different users without storing or knowing individual passwords.

Endpoint

/srv.asmx/CreateTicketforUser

Methods

Parameters

Parameter Type Required Description
TrustedUserPwd string Yes The trusted user password configured in the infoRouter server's application settings (appsettings.json). This is a shared server-side secret, not the target user's password.
UserName string Yes The login name of the infoRouter user for whom the ticket is created. The system administrator account cannot be impersonated via this method.

Note: This method does not require an authenticationTicket. Access is controlled solely by the TrustedUserPwd server secret.

Response

Success Response

<root success="true" ticket="3f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c" />

Response Attributes

Attribute Type Description
success boolean true on success
ticket GUID string Authentication ticket to use in subsequent API calls on behalf of UserName

Note: Unlike AuthenticateUser, this response returns only ticket — it does not include userid, username, firstName, lastName, email, expireOn, or isAuthenticated.

Error Response

<root success="false" error="[ErrorCode] Error message" />

Required Permissions

Example

Request (GET)

GET /srv.asmx/CreateTicketforUser?TrustedUserPwd=MyServerSecret&UserName=jsmith HTTP/1.1
Host: server.example.com

Request (POST)

POST /srv.asmx/CreateTicketforUser HTTP/1.1
Content-Type: application/x-www-form-urlencoded

TrustedUserPwd=MyServerSecret&UserName=jsmith

Request (SOAP 1.1)

POST /srv.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/CreateTicketforUser"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CreateTicketforUser xmlns="http://tempuri.org/">
      <TrustedUserPwd>MyServerSecret</TrustedUserPwd>
      <UserName>jsmith</UserName>
    </CreateTicketforUser>
  </soap:Body>
</soap:Envelope>

Notes

Error Codes

Error Description
[902] Ticket generation are not allowed for this user. The specified UserName is the system administrator account, which cannot be impersonated
[900] Authentication failed The TrustedUserPwd is incorrect, the user does not exist, or the user account is inactive