'List all domains available to an authenticated user.
:param context: request context
:returns: list of accessible domains'

@controller.protected()
def list_domains_for_user(self, request):

    domains = self.assignment_api.list_domains_for_groups(request.auth_context['group_ids'])
    domains = (domains + self.assignment_api.list_domains_for_user(request.auth_context['user_id']))
    domains = [dict(t) for t in set([tuple(d.items()) for d in domains])]
    return DomainV3.wrap_collection(request.context_dict, domains)
