Delete Users Assets Report
Last updated
Last updated
Fetch Deleted Users: Retrieve a list of users who have been marked as deleted from the database.
Extract User IDs: Extract the unique identifiers for these deleted users.
Fetch Content Assets: Query an external API to fetch assets (such as documents, media, etc.) created by these deleted users.
Fetch Course Assets: Query an external API to fetch course-related assets (like course batches) associated with these deleted users.
Fetch ML Assets from API or MongoDB: The job queries an external API (ML_ASSET_SEARCH_URL) to fetch ML assets (solutions and programs) created by the deleted users. Alternatively, if the API call fails, the job directly queries MongoDB to retrieve the required ML asset data. This involves connecting to the MongoDB instance and executing aggregate queries to filter and retrieve the relevant ML assets based on user IDs.
Process DataFrames: Integrate the dataframes for deleted users and their assets, and perform necessary processing, such as filtering and deduplication.
Save Report to Blob Storage: Save the final processed report to a cloud-based blob storage, typically in CSV format.
This report is useful for auditing, tracking, and removing assets that are no longer needed, ensuring system cleanliness and compliance with data retention policies.
Data provider:
Cassandra - User table
Course Batch API
Content Search API
Delete Asset report CSV content:
userId
Static
String
User Id of the deleted User
username
Static
String
Decrypted user name of the deleted user
roles
Static
String
Roles of the deleted user
assetIdentifier
Static
String
Identifier of the asset / course batch / ML program / solution
assetName
Static
String
Name of the asset / course batch / ML program / solution
assetStatus
Static
String
Status of the asset / course batch / ML program / solution i.e live/draft
objectType
Static
String
Object type of the asset/course batch / ML program / solution i.e QuestionSet/content/batch
Sample data: