PUMA SPI's findUsersByAttribute only allows search on attributes of dataType string
The findUsersByAttribute() method can only be applied on string type attributes. This is a method in the PumaLocator class. If this method is used on an attribute that is not of type string, then the portal logs might display an EJPSG0008E exception.


The findUsersByAttribute() method can only be applied on string type attributes. Therefore, non-string type attributes such as follows cannot be used as a valid search attribute:

* "manager",
* "secretary",
* "seeAlso" (dataType=MemberIdentifier),
* "createTimestamp",
* "modifyTimestamp" (dataType=Date),
* "jpegPhoto" (dataType=ByteArray),
* "ibm-firstDayOfWeek", and
* "ibm-firstWorkDayOfWeek"

The error recorded in the logs appears like the following:

Search criteria is invalid. manager=uid=theManager,o=default organization ...
Caused by: com.ibm.portal.puma.InvalidSearchCriteriaException:
EJPSG0008E: Search criteria is invalid. manager=uid=theManager,o=
default organization
...

This is a limitation of the findUsersByAttribute method.
1 Comment To ' PUMA SPI's findUsersByAttribute only allows search on attributes of dataType string '

Anonymous said...

another shortcoming seems to be that if there are contact type potentially in the search results (because of placement in the LDAP), the call fails with the error: com.ibm.wps.um.exceptions.impl.PumaSystemExceptionImpl: com.ibm.wps.ac.AuthorizationDataException: EJPSB0057E: Authorization Data Exception occurred.

Post a Comment