SMS: Querying schemas with access restrictions