class AttackSimulationSimulationUserCoverage
A data class representing cumulative simulation data and results for a user in Microsoft 365 attack simulation and training scenarios.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/directory/security/attacksimulations/user_coverage.py
4 - 5
simple
Purpose
This class serves as a data transfer object (DTO) that encapsulates user-specific metrics and coverage information from attack simulation exercises. It inherits from ClientValue, which is part of the Office 365 Python SDK framework for representing client-side values that can be serialized/deserialized when communicating with Microsoft Graph API endpoints. The class is used to track and report on user participation and performance in security training simulations.
Source Code
class AttackSimulationSimulationUserCoverage(ClientValue):
"""Represents cumulative simulation data and results for a user in attack simulation and training."""
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
bases: Inherits from ClientValue, which provides base functionality for client-side value objects in the Office 365 SDK, including serialization/deserialization capabilities for API communication
Return Value
Instantiation returns an AttackSimulationSimulationUserCoverage object that can hold user simulation coverage data. As a ClientValue subclass, instances can be serialized to JSON for API requests and deserialized from API responses.
Class Interface
Methods
__init__()
Purpose: Initializes a new instance of AttackSimulationSimulationUserCoverage
Returns: None - constructor initializes the object
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
entity_type_name |
str | Inherited from ClientValue, stores the entity type name for serialization purposes | instance |
Dependencies
office365
Required Imports
from office365.runtime.client_value import ClientValue
from office365.entity.attacksimulation_simulation_user_coverage import AttackSimulationSimulationUserCoverage
Usage Example
from office365.runtime.client_value import ClientValue
from office365.entity.attacksimulation_simulation_user_coverage import AttackSimulationSimulationUserCoverage
# Typically instantiated by the Office 365 SDK when retrieving data
user_coverage = AttackSimulationSimulationUserCoverage()
# The object would normally be populated by API response data
# and accessed through the Office 365 client context
# Example: retrieving from Microsoft Graph API
# context = ClientContext(tenant_url).with_credentials(credentials)
# coverage_data = context.security.attack_simulation.simulation_user_coverage.get().execute_query()
# for user_coverage in coverage_data:
# # Access user coverage properties
# pass
Best Practices
- This class is typically instantiated and populated by the Office 365 SDK framework rather than manually by developers
- Instances are usually obtained through Microsoft Graph API queries for attack simulation data
- As a ClientValue subclass, the object supports property-based access to simulation data fields
- Do not manually construct instances unless extending the SDK or testing; rely on API responses to populate objects
- The class follows the Office 365 SDK pattern where properties are dynamically added based on API response structure
- Ensure proper authentication and authorization before attempting to access attack simulation data
- This is a read-only data structure representing API response data; modifications should be done through appropriate API endpoints
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class SimulationReport_v1 78.8% similar
-
class AttackSimulationRepeatOffender 77.3% similar
-
class SimulationReport 75.8% similar
-
class SimulationAutomationRun 69.3% similar
-
class Simulation 68.7% similar