Secure method for setting role property