assets_guardian.plugins.dolibarr.compliance๏
Classes
|
Lists disabled user accounts in Dolibarr. |
|
Detects Dolibarr mailboxes that do not match any employee in employees.json. |
- class assets_guardian.plugins.dolibarr.compliance.DolibarrDeactivatedUsersRule(**kwargs: Any)[source]๏
Bases:
IComplianceRuleLists 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:
IComplianceRuleDetects 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.