Limit user access to content based on custom user profile feilds

Just create a group that allows users to request to join it and/or add members to that group when you have approved them.

If you trust that only people who know some secret will enter whatever value in the custom field you could make a plugin to add them automatically, but unless you’re adding tens of users a day, it’s probably not worth it.