This documentation applies to older versions of WSO2 ESB connectors. To find the documentation relevant to the version you are using, select the connector from the WSO2 Connector Store and click Documentation.

All docs This doc
Skip to end of metadata
Go to start of metadata


Overview

The following operations allow you to work with users. Click an operation name to see details on how to use it.

OperationDescription
getUserInfoRetrieves information about the currently logged in user.
setPasswordChanges a user's password

Operation Details

This section provides further details on the operations related to a user.

Retrieving the user information

To retrieve information about the user who is currently logged in, use salesforce.getUserInfo. The information provided includes the name, ID, and contact information of the user. See, the Salesforce documentation for details of the information that is returned using this operation.

If you want to get additional information about the user that is not returned by this operation, use retrieve operation on the User object providing the ID returned from getUserInfo.

getUserInfo
<salesforce.getUserInfo configKey="MySFConfig"/>


Changing user password

To change the user password by specifying the password, use salesforce.setPassword as follows:

setPassword
<salesforce.setPassword configKey="MySFConfig">
    <userId>[email protected]</userId>
    <password>abc123</password>
</salesforce.setPassword>

To change the user password using a system generated password, use salesforce.resetPassword as follows:

resetPassword
<salesforce.resetPassword configKey="MySFConfig">
    <userId>[email protected]</userId>
</salesforce.resetPassword>
Properties
  • userId: The user's Salesforce ID.
  • password: If using setPassword, the new password to assign to the user.
  • No labels