For this you may probably need to write LS code to loop through all the databases and then check whether the user is present in the database ACL or not. But this task is somewhat complicated when the user is listed out in sub-groups.
Probably I think there is no code to list out the solution for your problem.