You should be using the `/api/users/:user_id/enrollments` API endpoint to retrieve all of the enrollments for a particular user.