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

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?

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

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

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

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

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!!