Hello,
Thanks for your reply, I think I am seeing things clearer now: So I need to have one couch sync user account per app user if i am to filter syncing and access to restricted document such as "profile Information".
My one issue is how to dynamically create users each time a document called "profile" is created through my iOS app. I have read in the link that to create users, we would need to do a POST Request from the Server( Couchbase Server+sync is hosted in AWS in my case) /$DB/_user/ (I am not sure how
would the url look like)
.
Though I don't really have a static number of app users so I am still not sure how should I dynamicly create user accounts for each user who created a "profile" object/document through my app on first usage ==> I know from the iOS side i can construct an url for replication like http://%@:%@@192.168.3.3:4984/myBase with username and password, but my issue is still how to dynamicly create couch sync user accounts( I guess from my iOS client app??)
PS: if I remove, the admin channels attribute from GUEST, would the channel() and access() still be executed? How should my couch sync config change(in the "users" part to work well for my scenario)?
Sorry for long post, I just didn't find any doc addressing this kind of matter(unknown number of users+ filtering access to docs by their _id) beside using Facebook or persona Auth.