[rules-users] API for reading and writing rules