user_dao
User data access object (DAO) module.
Classes
UserDao
Bases: BaseDao
Human user data access object (DAO)
Attributes
Functions
get_in_namespace
get_in_namespace(
*,
namespace_key: str,
resource_key: str,
filter_deleted: bool = True,
filter_disabled: bool = True
) -> User | None
Retrieve an User
in a specified namespace by its primary key ID or name.
Parameters:
-
namespace_key
(str
) –The primary key ID of the namespace.
-
resource_key
(str
) –The primary key ID or name of the user.
-
filter_deleted
(bool
, default:True
) –Whether to filter out deleted activity sessions. Defaults to True.
-
filter_disabled
(bool
, default:True
) –Whether to filter out disabled activity sessions. Defaults to True.
Returns:
-
User | None
–User | None: The matching
User
orNone
if not found.