<p>Solution:</p>

<pre><code>    {% set myReverseConnections = craft.users.relatedTo({
        targetElement: currentUser,
        field: 'yourCustomRelationshipField'
    }) %}
</code></pre>

CC BY-SA 3.0
2018-02-24T12:27:33.363Z
2018-02-24T12:27:33.363Z
BillyMedia
<p>I have a relationship field within my member profile. It allows users to connect to each other, i can list those that currentUser is connected to, but i need to list all other members that are connected to currentUser, i.e. a reverse relationship. </p>

<p>I have this, but it just lists those that the currentUser is connected to, not the reverse, where am i going wrong?</p>

<pre><code>{% set myReverseConnections = craft.users.relatedTo(currentUser) %}
</code></pre>

<users><relations><user-profile><relatedto><current-user>
List users connected to me
# List users connected to me

(Asked by: username_0 on 2018-02-24)

I have a relationship field within my member profile. It allows users to connect to each other, i can list those that currentUser is connected to, but i need to list all other members that are connected to currentUser, i.e. a reverse relationship. 
I have this, but it just lists those that the currentUser is connected to, not the reverse, where am i going wrong?
{% set myReverseConnections = craft.users.relatedTo(currentUser) %}

**Tags:** users, relations, user-profile, relatedto, current-user


---

## 1 answers

### Answer by username_0 on 2018-02-24. Score: 1

Solution:
    {% set myReverseConnections = craft.users.relatedTo({
        targetElement: currentUser,
        field: 'yourCustomRelationshipField'
    }) %}


---

