Check size of users and groups available before iterating