Delete Users Assets Report

The "Deleted Users Assets Report" provides an overview of assets (content and course assets) created by users who have been deleted from the system. The report involves the following steps:

  1. Fetch Deleted Users: Retrieve a list of users who have been marked as deleted from the database.

  2. Extract User IDs: Extract the unique identifiers for these deleted users.

  3. Fetch Content Assets: Query an external API to fetch assets (such as documents, media, etc.) created by these deleted users.

  4. Fetch Course Assets: Query an external API to fetch course-related assets (like course batches) associated with these deleted users.

  5. 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.

  6. Process DataFrames: Integrate the dataframes for deleted users and their assets, and perform necessary processing, such as filtering and deduplication.

  7. 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:

Column Label
Column Type
Data Type
Description

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:

Last updated

Was this helpful?