Add views filter "Available on current domain" for users

Created on 24 September 2020, almost 5 years ago
Updated 31 May 2025, about 1 month ago

Problem/Motivation

I am wanting to create a block or a page of users in views that shows only those users of a specific domain (users that have domain access or editor for all affiliates). I'd be grateful for any advice on how to achieve this.

Proposed resolution

This seems to be similar to existing filter for nodes DomainAccessCurrentAllFilter but with different $all_table variable.
Instead of:
$all_table = $this->query->addTable('node__field_domain_all_affiliates', $this->relationship);
it should be:
$all_table = $this->query->addTable('user__field_domain_all_affiliates', $this->relationship);

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Oleksandr Yushchenko

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024