# Can I allow members read other member's name and certain data from private member collection?

**URL:** <https://forum.wixstudio.com/t/can-i-allow-members-read-other-members-name-and-certain-data-from-private-member-collection/20733>\
**Category:** Ask the community\
**Tags:** wix-members-area, question, code\
**Created:** [September 8, 2019, 2:33am UTC](https://forum.wixstudio.com/t/can-i-allow-members-read-other-members-name-and-certain-data-from-private-member-collection/20733 "2019-09-08T02:33:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mizhang](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mizhang](https://forum.wixstudio.com/u/mizhang)\
**Post date:** [September 8, 2019, 2:33am UTC](https://forum.wixstudio.com/t/can-i-allow-members-read-other-members-name-and-certain-data-from-private-member-collection/20733/1 "2019-09-08T02:33:05Z")

</div>

By default, PrivateMembersData is private collection and each record only allows read by the member him/herself. I would like to make a few fields open, like name. In a way, I can check who else (by their name) have been registered in this website.

Is there a simple way to do that?

---

<div class="post-metadata">

**Author:** ![lichade2016](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/lichade2016/32/14471_2.png) [@lichade2016](https://forum.wixstudio.com/u/lichade2016)\
**Post date:** [September 8, 2019, 2:50am UTC](https://forum.wixstudio.com/t/can-i-allow-members-read-other-members-name-and-certain-data-from-private-member-collection/20733/2 "2019-09-08T02:50:47Z")

</div>

**import** wixData **from** ‘wix-data’  
$w.onReady( **function** () {  
wixData.query(“Members/PrivateMembersData”)  
.find()  
.then((res) =\> {  
console.log(res)  
})  
});

Try this, I use it to display my members’ names

---

<div class="post-metadata">

**Author:** ![mizhang](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mizhang](https://forum.wixstudio.com/u/mizhang)\
**Post date:** [September 8, 2019, 3:21am UTC](https://forum.wixstudio.com/t/can-i-allow-members-read-other-members-name-and-certain-data-from-private-member-collection/20733/3 "2019-09-08T03:21:13Z")

</div>

Are you sure your privateMembersData collection with permission set to site member author?

---

<div class="post-metadata">

**Author:** ![lichade2016](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/lichade2016/32/14471_2.png) [@lichade2016](https://forum.wixstudio.com/u/lichade2016)\
**Post date:** [September 8, 2019, 3:25am UTC](https://forum.wixstudio.com/t/can-i-allow-members-read-other-members-name-and-certain-data-from-private-member-collection/20733/4 "2019-09-08T03:25:19Z")

</div>

@mizhang maybe you are right, I have not tried this code on published site

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [September 8, 2019, 1:28pm UTC](https://forum.wixstudio.com/t/can-i-allow-members-read-other-members-name-and-certain-data-from-private-member-collection/20733/5 "2019-09-08T13:28:24Z")

</div>

Technically you can get around it by using Wix Data Options, however that will not be an easy do for you if you are not a coder.  
[https://www.wix.com/corvid/reference/wix-data.html#WixDataOptions](https://www.wix.com/corvid/reference/wix-data.html#WixDataOptions)

---

<div class="post-metadata">

**Author:** ![mizhang](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mizhang](https://forum.wixstudio.com/u/mizhang)\
**Post date:** [September 8, 2019, 6:34pm UTC](https://forum.wixstudio.com/t/can-i-allow-members-read-other-members-name-and-certain-data-from-private-member-collection/20733/6 "2019-09-08T18:34:49Z")

</div>

This is the direction I want to try!!! Now I got it: When author create a post, there will be a reference of the new post as in a multi-reference field be generated. The same time, there will be a reference field of “author” generated in the PrivateMembers collection. Then I can use this query suppression option. Thanks!!
