How to retreive the UserID from a member page URL

  1. Option1: You can create it as Member Page in the member area . Only the member can access to their own members area

  2. Option2: create a dynamic page based on the Members/PrivateData collection. I think it will automatically block you if you’re not the member (or Site Admin).

  3. Option3: create a dynamic page (based on another collection) and write a function in backend/routers.js that checks if the logged-in member fits to the page url path (if not - redirect to a ‘forbidden’ message page.

  4. Option4: (less secured): create a dynamic page (based on anther collection) and filter the dataset based on the user id.