We've been using Google Apps for Edu in our University for some time now and we have multiple domain setups. There's a primary domain (uniben.edu e.g john.smith@uniben.edu) and other domains for students (scott.tigger@law.uniben.edu, john.smith@agric.uniben.edu). However, when I try to obtain all users using UserManager.getAllUsers(); it only returns accounts under the primary uniben.edu domain, leaving out accounts created / managed under the other domains.
Using Google App Script, how can I retrieve these other domains and get their users as well. I want to be able to inspect accounts across all our domains. Thanks in advance.