is it possible to retrieve emails of domain users from domain admin ?

i have to create a Google apps script application, which read all emails of domain users and save emails in Gdrive of one account.