def get_default_tenant_slug(self, as_user: bool=True) -> str:
    '\n        Get the default tenant slug for the currently authenticated user\n\n        Args:\n            - as_user (bool, optional): whether this query is being made from a USER scoped token;\n                defaults to `True`. Only used internally for queries made from RUNNERs\n\n        Returns:\n            - str: the slug of the current default tenant for this user\n        '
    if as_user:
        query = {'query': {'user': {'default_membership': {'tenant': 'slug'}}}}
    else:
        query = {'query': {'tenant': {'slug'}}}
    res = self.graphql(query)
    if as_user:
        user = res.get('data').user[0]
        slug = user.default_membership.tenant.slug
    else:
        slug = res.get('data').tenant[0].slug
    return slug
Get the default tenant slug for the currently authenticated user

Args:
    - as_user (bool, optional): whether this query is being made from a USER scoped token;
        defaults to `True`. Only used internally for queries made from RUNNERs

Returns:
    - str: the slug of the current default tenant for this user
def get_default_tenant_slug(self, as_user: bool=True) -> str:
    '\n        Get the default tenant slug for the currently authenticated user\n\n        Args:\n            - as_user (bool, optional): whether this query is being made from a USER scoped token;\n                defaults to `True`. Only used internally for queries made from RUNNERs\n\n        Returns:\n            - str: the slug of the current default tenant for this user\n        '
    if as_user:
        query = {'query': {'user': {'default_membership': {'tenant': 'slug'}}}}
    else:
        query = {'query': {'tenant': {'slug'}}}
    res = self.graphql(query)
    if as_user:
        user = res.get('data').user[0]
        slug = user.default_membership.tenant.slug
    else:
        slug = res.get('data').tenant[0].slug
    return slug