App Deletion Activity does not show the username

Hi Team

Is there any way to see the username for any deletion done from Morpheus UI. For now if we delete any instance, it shows who has deleted it however if we delete any Application then in Operations → Activity, it shows the name of Tenant but no user info who has done the deletion.

Thanks,
RJ

You should be able to find this info in the audit_log table in the DB.

select * from audit_log where object_id = 40 and event_type = "apps#delete";

Replace 40 with your desired app ID.

Below is the output:

{
“data”:
[
{
“id”: 73665,
“level”: 1,
“date_created”: “2024-07-12 10:29:31”,
“log_signature”: “5532bbcf31c5294f3158bc22441b46578b3cd7e48e216f33ce2ef2a25c8bf4b5”,
“actual_user_id”: 1,
“object_class”: “app”,
“object_id”: “40”,
“user_id”: 26,
“account_id”: null,
“description”: “CEF:0|MorpheusData|Morpheus|7.0.2|apps#delete|app Deleted|src=10.32.19.36 suid=26 suser=asingh request=http://10.32.20.150/provisioning/apps/40 requestMethod=DELETE cn1=40 cn1Label=Object ID cs1Label=Object Type cs1=app cn2=1 cn2Label=Account ID cs4Label=Original Username cs4=deepti”,
“event_type”: “apps#delete”
}
]
}

Where actual_user_id is the master tenant user I logged in with and user_id is the impersonated user that performed the deletion.

Hope this is helpful.

Hi @dgaharwar - Thank you for the info. However can we not see the deletion details from UI itself like we have for instances, otherwise every time one has to go to database and check and compare the user with user id as well.

That sounds like a feature to me.