I'm a coding novice and am getting lost in the wealth of information available. I'm hoping someone can set me in the right direction, or at least confirm that what I'm trying to do is doable.
I want to control what pages my users can see based on what programs they are enrolled in.
I have created a data collection keyed to a user that contains yes/no fields for the various programs we offer. (I'd like to use the same id that wix-users has as the key to this collection, but I could also match on name or email.) I know I'll be able to add code to each page that can check that a user has permission to see a page before loading the page.
What I'm having difficulty figuring out is how to connect a user to this collection.
I'd like to create a list of existing members, then I could select a member and go to a page to update the programs that they have access to. But I can't figure out how to create a list from wix-users; is there a way to do this?
Or maybe I could go in the reverse direction, create a list of users from my collection and then if I add a new user to the collection add a user record to wix-users? Is that even possible?
One other option I explored was using the category groups associated with a user subscription to reflect the programs we have. I can create group names for each program. But I could not find any references anywhere that would tell me how to check which categories a logged in user has access to. Is that possible?
One important thing to understand is that our organization would set up a member and then send them a link to create their login password. Access to this site would be a part of their program. We do not invite the public to join this site.