def METHOD_NAME(self, user, domain):
    domain_membership = user.get_domain_membership(domain, allow_enterprise=False)
    if domain_membership:
        return domain_membership.last_accessed
    return None