Siebel Analytics Web Services Guide > Description of Siebel Analytics Web SOAP API Methods > SAWSessionService Service >

impersonateex() Method


The impersonateex() method in the SAWSessionService service logs on and impersonates the user. Similar to the impersonate method, but impersonateex can specify optional session parameters. This method is useful when you need to create sessions for multiple users and have only the administrator's name and password. You do not need to use the (logon) method if you use the impersonateex() method.

If user authentication or impersonation fails, an exception is thrown.

Signature

String impersonateex(String name, String password, String impersonateID, SAWSessionParameters sessionparams);

Arguments
Description

String name

A character string that contains the user name to log on and authenticate.

String password

A character string that contains the password for the user. If there is no password for the user, leave this field empty (void).

String impersonateID

A character string that contains the user name to impersonate the authenticated user.

SAWSessionParameters sessionparams

Optional. The sessionparams to use, supplied in the SAWSessionParameters structure. For information about the SAWSessionParameters structure, read SAWSessionParameters Structure.

Returns

This method returns the session ID and sets an HTTP session cookie. The session ID is used in other SOAP API calls to identify your SOAP session.
Siebel Analytics Web Services Guide