Create a pattern to access entities according to specific rules