In both cases,identifying the occupants of a building and retrieving their location with in the building is fundamental in the first case, for instance, to let the building manager specify policies that involve the number of people in a room, while in the second case to select the set of rules that have to be activated for a particular room (the ones belonging to the occupants of the room itself)