Hello, my name is Greg.
Generally there are three rules for read access and three for write access.
I am unsure based on your post what full information you need on this so please CLICK HERE for a resource on this topic that I think is heading in the direction of what you need. If not, please reply back with more specifics.
When satisfied, be sure to rate positively as that is the only way I receive credit for my help today.