Fixes #7025 - replace default_environment in sys

In System api, default_environment is still being retrieved from the
User (which is no longer being defined there). This fix obtains the
environment from the user's default_organization.
Merge pull request #4561 from dustint-rh/rm_default_environment_in_sys_api

Fixes #7025 - replace default_environment in sys