create()
Overview
public string function create(
required string userId
, required string targetUrl
)
Sets up an in-memory impersonation record when passed a website user id and target URL. Returns the appropriate redirect URL with impersonation key appended.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| userId | string | Yes | ID of the website user to impersonate |
| targetUrl | string | Yes | The URL to redirect to upon successful impersonation |