Web Services Reference for Oracle Billing Insight > Examples of Web Services > Examples of the Authentication Web Service >

Example of Impersonating a User


This example shows you how to use the impersonation Web service to return a valid impersonation token for a particular user. The token in the XML response must be passed as a parameter in subsequent REST services requests.

Operation

Use the following operation to impersonate a user:

POST /authentication/impersonation

Sample URL

The following is a sample URL for this Web service example:

http://myhost.example.com:7017/rs/api/v2/authentication/impersonation?target_user_id=ftown&csr_id=$trust_user_name

Sample XML Input

The following is an example of XML input:

<credential>
<username>$trust_user_name</username>
<password>$trust_user_password</password>
</credential>

Sample JSON Input

The following is an example of JSON input:

{
   "username": "$trust_user_name",
   "password": "$trust_user_password"
}

XML Response

The following is an example of the XML response:

<token>fqKHXSNFh1NHbt9A5aWiCuPgFcorcvpD558Ws6RwOo8kgQe4</token>

Web Services Reference for Oracle Billing Insight Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.