Adding a version which worked with admin-sdk
Working version with admin-sdk directory api.