Preference

Methods described in this section relate to the preferences API. These methods can be accessed at TenableIE.preference.

class PreferenceAPI(api: APISession)[source]
details() Dict[source]

Get the user’s preferences

Returns:

The user’s preferences object

Return type:

dict

Examples

>>> tie.preference.details()
update(**kwargs) Dict[source]

Update the user’s preferences

Parameters:
  • language (optional, str) – The language of product for the current user.

  • preferred_profile_id (optional, int) – The profile identifier to use after login for the current user.

Returns:

The user’s preferences object

Example

>>> tie.preference.update(
...     language='en',
...     preferred_profile_id=1
... )