Login Multiuser and Control the Entities are Condition Base

Hi,
I'm the beginner, is it possible to create more than user login system; and also control the switches, into time and user based privilleges; 

Example: if im away from the office cannot control the some entities like switches,aircon,etc