Differ between users and groups in trigger script
Hi,
we have an Integrity Source server trigger script that gets a user- or groupname from a member attribute.
Actually, it identifies this string as user or as group by the command
Server.getUsersOfGroup(Server.getGroupBean("string"));
and if the size of the return value is 0 (string is username) or not (string is groupname).
This works pretty well, but we get many errors in the logfile like
2014-04-01 11:31:40,732 ERROR [mksis.IntegrityServer] * * * * ERROR * * * * (0): MKS125524: Group <string> could not be found in the realm.
So my question is:
Is there another way to determine if a given string is a valid user or a valid groupname?
Thanks,
Stephan

