Grant Routes


source

GetGrants_Error

 GetGrants_Error (status, message, domo_instance, function_name)

base exception


source

get_grants

 get_grants (auth:domolibrary.client.DomoAuth.DomoAuth,
             debug_api:bool=False, session:httpx.AsyncClient=None)

sample implementation of get_grants

token_auth = dmda.DomoTokenAuth(
    domo_access_token=os.environ["DOMO_ACCESS_TOKEN"],
    domo_instance=os.environ['DOMO_INSTANCE'],
)

res = await get_grants(auth=token_auth)

pd.DataFrame(res.response[0:5])
authority title description authorityUIGroup userCount roleIds dependsOnAuthorities systemGroup
0 authorization.roles Manage all roles Create, edit and delete custom roles. Assign a... COMPANY 16 [1, 275763436] [ui.admin] True
1 audit View activity logs View and export audit logs. COMPANY 113 [1, 275763436, 1927158482, 2097317660] [ui.admin] True
2 customer.edit Manage all company settings Manage company metadata, authentication rules,... COMPANY 16 [1, 275763436] [ui.admin] True
3 developer.token.manage Manage all access tokens Create and delete any access tokens. COMPANY 21 [1, 275763436, 1927158482] [ui.admin] True
4 domo.system.messages Receive Domo System Messages Receive Domo system messages about maintenance... COMPANY 21 [1, 275763436, 1927158482] [ui.admin] True