add user access function