000017994 - How to reset a user property back to null using RSA ClearTrust Administrative API

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000017994
Applies ToRSA ClearTrust 4.6.1 Administrative API
IssueHow to reset a user property back to null using RSA ClearTrust Administrative API
ResolutionIn order to reset a user property you must use the delete method in the IUserProperty class.  To do this you can call the following steps:

IUserProperty property = user.getUserProperty("UserProperty");
property.delete();
user.save();

where user is an IUser.

You cannot use the setUserProperty() method with a null value.  You will receive a NullPointerException.
Legacy Article IDa8748

Attachments

    Outcomes