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

NameTypeRequiredDescription
userIdstringYesID of the website user to impersonate
targetUrlstringYesThe URL to redirect to upon successful impersonation