I think that’s a pretty neat idea. I will consider adding it into the plugin itself when I have time. But you can do it it on your own in the meantime. you can also modify the templates to show a username or something instead of actual names. (fairly certain that will work with the block as well since the block is currently only a wrapper for the original shortcode. eventually I will improve that)
I worked up some code snippets in my issue notes you can take a look:
https://github.com/helgatheviking/Simple-User-Listing/issues/41
Basically you will need to add a meta field to your registration and then use that meta field to modify the SUL queries. If you already have a lot of users you might need to modify or suddenly all your directories will be empty? and modify the query to check if the key exists. If you have a lot of users you might want to explore a user taxonomy since meta is inefficient to filter with.
Running out the door this morning so can’t think through all the details, but hopefully this gets you a starting point.
Thanks for your reply, I’ll take a look at the code – this is to go in the template?
no. It would be best in a custom plugin or added via a plugin like Code Snippets.
Keep in mind that you should test the code extensively in staging before using in production.