Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Modify the SetCredentials method

Updated on October 19, 2022

Call the client credential provider SetCredentials method when the ASO Manager or the Credential Store requests a credential update. Add the logic into this method to update the credentials in your external source.

The SetCredentials method includes the following parameters:

ParameterDescription
applicationKeyA string that contains the name of the credential that you requested.
customDataA dictionary that contains name/value pairs. This dictionary contains all the values on the credential entry and all the replaceable system parameters, for example:
  • RobotName
  • RobotIndex
  • CurrentUser
  • Domain
  • AdapterFriendlyName
  • MachineName
  • WorkGroup
domainA string that contains the new domain value.
userNameA string that contains the new user name value.
passwordA string that contains the new password value.
Note: If you do not implement the SetCredentials method, you can receive a NotSupportedException error.

Add the required code to the method to query and update the external source. The code you add replaces the code highlighted in yellow in the following example:

SetCredentials method
Example of the SetCredentials method.

The SetCredentials method returns true or false for the result. If the result is true, the credential update succeeded. If the result is false, the credential request failed.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us