Asset Ownership Transfer

This feature will be released under inQuiry 8.0.0 release.

Overview

The user deletion requirement in inQuiry has been originated from the below requirement.

PRD: [PRD] Delete Account functionality

BE Design Lern - [Design] Delete Account Functionality

FE Design Lern - [Design] [Front-end]Delete User Functionality

What is changing?

The user can request for deletion of their account in Sunbird, this means two primary actions to happen.

  1. User's Personal Identifiable Information (PII) needs to be removed

  2. The assets (like questions, questionSets, content etc) that was created by this user needs to be transferred to an identified user.

Changes for Learn:

  1. Learn BB provided ownership transfer api which produces a kafka event on <env>.user.ownership.transfer topic.

  2. For more details on these api's, please visit

Changes for inQuiry:

  1. Asset Ownership Transfer feature released under inQuiry 8.0.0 release.

  2. inQuiry provided a flink job user-pii-data-updater for Asset Ownership Transfer.

  3. The flink job listen to both kafka topic and process the data accordingly.

  4. The job works for all object type (including Content, Collection, Assets) which are configured.

  5. The flink job search for all objects (configured with flink job) owned by deleted user and update the ownership field (createdBy) to the new user specified in the event.

  6. If specific asset is meantioned while making ownership transfer api call, only that asset ownership will be transferred.

  7. The job also update the pii field value by combining firstName and lastName of the new user who is going to own the asset.

  8. The job validates the role of new user against pre-configured roles in the job. If any value matches, then only it proceeds with further processing.

  9. Sample PII Config is as below:

    "PII_Fields": { "user": { "createdBy": ["creator"] }, "org": { } }

Release Tags:

ComponentService to be BuildBuild TagDeploy JobDeployment TagComment

InquiryKafkaSetup

NA

NA

Deploy/job/dev/job/KnowledgePlatform/job/InquiryKafkaSetup/

TO BE UPDATED

A new kafka topic <env>.user.ownership.transfer has to be created for user-pii-data-updater flink job

InQuiryFlink Job

Build/job/KnowledgePlatform/job/InquiryFlinkJob

TO BE UPDATED

Deploy/job/dev/job/KnowledgePlatform/job/InquiryFlinkJob/

TO BE UPDATED

Flink Job user-pii-data-updater is modified to support ownership transfer use case Config File Reference For Above Job: TO BE UPDATED

Existing Variables of user-pii-data-updater flink job (for PII Cleanup Use case):

Variable NameDescriptionDefault Value

user_pii_updater_kafka_topic_name

Input Kafka Topic Name for pii cleanup

{{ env_name }}.delete.user

user_pii_updater_group

Group Name For The Flink Job

{{ env_name }}-user-pii-updater-group

user_pii_target_object_types

Target Object Type and Schema Version should be configured as value . e.g: If you want to process 5 different objects for deleted user, then all 5 object types should be part of this configuration along with corresponding schema versions.

'{ "Question": ["1.0", "1.1"], "QuestionSet": ["1.0", "1.1"] }'

user_pii_replacement_value

The value which need to be inserted for target pii fields.

"Deleted User"

admin_email_notification_enable

This falg is used to enable/disable email notification for admin

true

user_org_service_base_url

Base Url of userorg service for sending notification

"http://{{private_ingressgateway_ip}}/userorg"

email_notification_subject

Subject Line for Email Notification

"User Account Deletion Notification"

email_notification_regards

Value For Regards in Email Notification

"Team"

New Variables Added to user-pii-data-updater flink job for Ownership Transfer Use case:

Variable NameDescriptionDefault Value

ownership_transfer_kafka_topic_name

Input Kafka Topic Name for asset ownership transfer

{{ env_name }}.user.ownership.transfer

ownership_transfer_user_roles

valid roles for new user who is going to take ownership

["CONTENT_CREATOR", "BOOK_CREATOR"]

Last updated