Using the Cloud Directory APIs