Ensure only admin or scheduleadmin is served add user code.