Returns the task redirection that is currently configured for a user -“ i.e., the user to whom all new tasks assigned to the specified user are being forwarded.
If no redirection is active, the response contains no <TaskRedirection> element.
/srv.asmx/GetUserTaskRedirectionTo
/srv.asmx/GetUserTaskRedirectionTo?authenticationTicket=...&userName=.../srv.asmx/GetUserTaskRedirectionTo (form data)http://tempuri.org/GetUserTaskRedirectionTo| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
userName |
string | Yes | Login name of the user whose redirection to retrieve. |
<root success="true">
<TaskRedirection>
<UserId>15</UserId>
<UserName>alice.jones</UserName>
<FullName>Alice Jones</FullName>
<Email>alice.jones@example.com</Email>
<StartDate>2024-03-01</StartDate>
<EndDate>2024-03-31</EndDate>
</TaskRedirection>
</root>
<root success="true" />
<root success="false" error="[901] Session expired or Invalid ticket" />
The <TaskRedirection> element describes the destination user (the person tasks are being redirected to):
| Element | Description |
|---|---|
UserId |
Numeric user ID of the redirect target. |
UserName |
Login name of the redirect target. |
FullName |
Full display name of the redirect target. |
Email |
Email address of the redirect target. |
StartDate |
Date from which the redirection is active. Empty string if open-ended. |
EndDate |
Date on which the redirection expires. Empty string if open-ended. |
Any authenticated user may call this API.
GET /srv.asmx/GetUserTaskRedirectionTo
?authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
&userName=john.smith
HTTP/1.1
Host: yourserver
POST /srv.asmx/GetUserTaskRedirectionTo HTTP/1.1
Host: yourserver
Content-Type: application/x-www-form-urlencoded
authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c&userName=john.smith
userName to be forwarded to another user for the duration of the active date range.StartDate and EndDate window has passed or has not yet started, the redirection may exist in the database but not be actively applied. The API returns the stored redirection record regardless.| Error | Description |
|---|---|
[900] |
Authentication failed -“ invalid credentials. |
[901] |
Session expired or invalid authentication ticket. |
| User not found | The specified userName does not exist. |