duplicate

The duplicate function is used to log in as another user. It duplicates the active session.

Copied!
svc=core/duplicate&params={"operateAs":"<text>",
			    "continueCurrentSession":<bool>,
				"appName":"<text>",
				"checkService":"<text>"}

Parameters

NameDescription

operateAs

The name of the user on whose behalf you want to log in to the system. The parameter should be empty if you want to log in as the main user. 

continueCurrentSession

The parameter defines whether the previous session should be continued. Possible values:

  • false (by default);
  • true — both SIDs remain valid. 
appNameAn optional possibility to rename the app in the duplicated session.
checkServiceAn optional possibility to validate the billing service of the current user.

To get information about the current session without generating a new session, use the duplicate function with the following parameter:

Copied!
svc=core/duplicate&params={"restore": 1}

Returned result

The format of the returned result is the same as for the login function.

Possible error codes:

CodeDescription
1003No session.
8Failed to fetch the subordinate user (the operateAs parameter) or failed to set the token ACLs for the new session.
7Access denied due to the billing rules (only for the checkService parameter).
1Invalid session.
Download PDF file
Download Word document

See also