For your specific question, can you post the following:
A sample doc or set of docs that you are testing with
Your sync function
The relevant REST API calls you made to create users/roles and grant access to users/roles (if any)
The specific problem(s) you are running into … like “UserZ can write to DocA and should not be able to”
With a specific example, it will make it much easier to debug your issue.
Also, if the docs I posted aren’t making sense, please post specific feedback on what doesn’t make sense.
If you read through those docs and still have no idea how to implement it, then try to post a more complete specification of your problem – for example clearly differentiate between the read/write side of things, as well as the different doc types … assuming you have multiple doc types.
my problem is i’m developing a loan management system with two interfaces like lenders and borrowers.both of them going to use the same application that means a single doc (loans ) is common to them but the usage is different .
i’m not yet using channels in my project. when i was refer the channels i was confused on following thoughts
#1 it’ll full fill my requirements?
#2 how it works?
based on the examples we declare channel attr in json and it have only one channel , based on my requirements both users can access the same doc when the switch a business
assign a doc to a single channel, and grant that channel to multiple roles
assign a doc to multiple channels, where each role is only granted one of the channels
Channels are extremely flexible. I’d be very surprised if it can’t match your use case. If you give a detailed description, I can give you a better sketch of a solution.