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.
PUMA SPI's findUsersByAttribute only allows search on attributes of dataType string
.jpg)
Article By >>
Munish K Gupta
Munish is the Founder and Chief Contributor at Tech Spot. I have extensive experience in Technology Architecture, Solution Engineering and IT operations Management. I cover areas related to Performance Engineering, Cloud, Open Source and Portals.
Check out my other blog on Akka - a concurrent programming framework - Akka Essentials and my github repository here

Subscribe to Tech Spot feeds via RSS or Email to receive instant updates.
Subscribe to:
Post Comments
(
Atom
)
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