assets_guardian.plugins.dolibarr.compliance๏ƒ

Classes

DolibarrDeactivatedUsersRule(**kwargs)

Lists disabled user accounts in Dolibarr.

DolibarrUnknownMailComplianceRule(**kwargs)

Detects Dolibarr mailboxes that do not match any employee in employees.json.

class assets_guardian.plugins.dolibarr.compliance.DolibarrDeactivatedUsersRule(**kwargs: Any)[source]๏ƒ

Bases: IComplianceRule

Lists disabled user accounts in Dolibarr.

An account is considered disabled if its statut field is โ€œ0โ€ in the Dolibarr API, which is mapped to IdentityState.INACTIVE during collection.

evaluate(entries: Iterable[Identity], config: dict[Any, Any] | None = None) Iterable[Finding][source]๏ƒ

Inspects a list of entries to detect non-conformities.

Parameters:
  • entries โ€“ List of entries (identities OR accesses) to analyze.

  • config โ€“ Optional parameters (thresholds, network IPs, etc.) from YAML.

Returns:

List of detected non-conformities.

Return type:

Iterable[Finding]

property description: str๏ƒ

Description of the rule.

property name: str๏ƒ

Name of the rule.

property rule_category: RuleCategory๏ƒ

COMPLIANCE (compliance rules).

Type:

Rule category

property severity: SeverityType๏ƒ

Severity level of the rule.

property target_entity: str๏ƒ

Entity targeted by the rule.

class assets_guardian.plugins.dolibarr.compliance.DolibarrUnknownMailComplianceRule(**kwargs: Any)[source]๏ƒ

Bases: IComplianceRule

Detects Dolibarr mailboxes that do not match any employee in employees.json.

evaluate(entries: Iterable[Identity], config: dict[str, Any] | None = None) Iterable[Finding][source]๏ƒ

Reports each Dolibarr user whose email has no matching employee entry.

Yields:

Finding โ€“ One finding per unknown employee email detected.

property description: str๏ƒ

Description of the rule.

property name: str๏ƒ

Name of the rule.

property severity: SeverityType๏ƒ

Severity level of the rule.

property target_entity: str๏ƒ

Entity targeted by the rule.