token_auth = dmda.DomoTokenAuth(
domo_instance=os.environ['DOMO_INSTANCE'],
domo_access_token=os.environ["DOMO_ACCESS_TOKEN"],
)search_or_upsert_domo_group
search_or_upsert_domo_group (auth, group_name, upsert_if_not_exist:bool=True, group_type='closed', debug_api:bool=False, is_hide_system_groups:bool=True)
upsert_domo_group
upsert_domo_group (auth:domolibrary.client.DomoAuth.DomoAuth, group_name:str, description:str='updated via 2025-08-20', group_owner_names:List[str]=None, group_t ype:domolibrary.routes.group.GroupType_Enum='closed', is_hide_system_groups:bool=True, debug_api:bool=False)
| Type | Default | Details | |
|---|---|---|---|
| auth | DomoAuth | ||
| group_name | str | ||
| description | str | updated via 2025-08-20 | |
| group_owner_names | List | None | [“Role: Admin”] |
| group_type | GroupType_Enum | closed | |
| is_hide_system_groups | bool | True | |
| debug_api | bool | False | |
| Returns | DomoGroup |
search_domo_groups_by_name
search_domo_groups_by_name (auth:domolibrary.client.DomoAuth.DomoAuth, group_names:List[str], is_hide_system_groups:bool=True)
await search_or_upsert_domo_group(auth = token_auth, group_name = 'dev_jupyter')DomoGroup(id=1494995278, name='dev_jupyter', type='closed', is_system=False, description='updated via 2024-10-16', custom_attributes={})
search_domo_account_by_name
search_domo_account_by_name (auth:domolibrary.client.DomoAuth.DomoAuth, account_name:str)
DJW_NoAccount
DJW_NoAccount (account_name, domo_instance)
base exception
domo_accounts = dmacc.DomoAccounts(auth=token_auth)
await domo_accounts.get()
domo_account = domo_accounts.accounts[1]
await share_domo_account_with_domo_group(
auth=token_auth,
account_name=domo_account.name,
group_name="dev_jupyter",
upsert_group_if_no_exist=True,
is_hide_system_groups=False,
debug_api=False,
)ResponseGetData(status=200, response='', is_success=True, parent_class=None)
remove_partition_by_x_days
remove_partition_by_x_days (auth:domolibrary.client.DomoAuth.DomoAuth, dataset_id:str, x_last_days:int=0, separator:str=None, date_index:int=0, date_format:str='%Y-%m-%d')
get_company_domains
get_company_domains (auth:domolibrary.client.DomoAuth.DomoAuth, dataset_id:str, handle_err_fn:<built- infunctioncallable>, sql:str='select domain from table', global_admin_username:str=None, global_admin_password:str=None, execution_env:str=None, debug_api:bool=False)