def validate_user_removable(new_val)
      raise JSS::UnsupportedError, 'User removal settings not applicable to this class' unless self_service_payload == :profile

      raise JSS::UnsupportedError, 'Removal :with_auth not applicable to this class' if new_val == :with_auth && !self_service_targets.include?(:ios)

      raise JSS::InvalidDataError, "Value must be one of: :#{PROFILE_REMOVAL_BY_USER.keys.join(', :')}" unless PROFILE_REMOVAL_BY_USER.key?(new_val)
    end
def validate_user_removable(new_val)
      raise JSS::UnsupportedError, 'User removal settings not applicable to this class' unless self_service_payload == :profile

      raise JSS::UnsupportedError, 'Removal :with_auth not applicable to this class' if new_val == :with_auth && !self_service_targets.include?(:ios)

      raise JSS::InvalidDataError, "Value must be one of: :#{PROFILE_REMOVAL_BY_USER.keys.join(', :')}" unless PROFILE_REMOVAL_BY_USER.key?(new_val)
    end
Raise an error if user_removable settings are wrong