dissect.database.ese.ntds.objects.user

Module Contents

Classes

User

Represents a user object in the Active Directory.

class dissect.database.ese.ntds.objects.user.User(db: dissect.database.ese.ntds.database.Database, record: dissect.database.ese.record.Record)

Bases: dissect.database.ese.ntds.objects.organizationalperson.OrganizationalPerson

Represents a user object in the Active Directory.

References

__object_class__ = 'user'
__repr_body__() str
property sam_account_name: str

Return the user’s sAMAccountName.

property sam_account_type: dissect.database.ese.ntds.util.SAMAccountType

Return the user’s sAMAccountType.

property primary_group_id: str | None

Return the user’s primaryGroupID.

property user_account_control: dissect.database.ese.ntds.util.UserAccountControl

Return the user’s userAccountControl flags.

is_machine_account() bool

Return whether this user is a machine account.

groups() collections.abc.Iterator[dissect.database.ese.ntds.objects.group.Group]

Yield all groups this user is a member of.

is_member_of(group: dissect.database.ese.ntds.objects.group.Group) bool

Return whether the user is a member of the given group.

Parameters:

group – The Group to check membership for.

managed_objects() collections.abc.Iterator[dissect.database.ese.ntds.objects.object.Object]

Yield all objects managed by this user.