Validate User without user login

Hi,
Given the fact that I have already logged into an IB database, is
there any way (i.e. sql, stored proc) to validate another users access
to the database.
Thanks in Advance
David Lindsey