avOrganizationsResource
is a service that allows you to get a user's active organizations.
The configuration object is simply Angular $http configuration
Returns the user's organizations. This is a helper method that automatically sends the currently logged in user's ID when fetching from the endpoint.
avOrganizationsResource.getOrganizations(config);