There are no straight way to find user who create/modified/delete any Firewall rules, however you can try following psql query in NSX-Manager DB to get some clue:-
### Find the name of service composer object that been deleted (say for example LB-SG ):-
secureall=# select objectid,name from domain_object where objectid like '%securitygroup-%';
objectid | name
------------------+-----------------------------------------------------------------------
securitygroup-11 | LB-SG
### Use following query to get the username who have create/modified/delete above SG and its corresponding timestamp with exact that been modified or deleted:-
Note you can use "Epoch Unix Time Stamp Converter" to convert following timestamp in to easily readable formate:-
secureall=# select username,timestamp,datacenter,operation,status,resourcename,isvcuser,old_value,new_value from audit_logs where username!= 'System' and resourcename = 'LB-SG';
username | timestamp | datacenter | operation | status | resourcename | isvcuser | old_value
| new_value
-----------------------------+---------------+------------+-----------+---------+--------------+----------+----------------------------------------------------------------------------------------------------------------------------------
--+------------------------------------------------------------------------------------------------------------------------------------
vsphere.local\administrator | 1540299909034 | | CREATE | SUCCESS | LB-SG | true |
| {"includeList":{"member-1":{"name":"LB-IPset","type":"IPSet"}},"name":"LB-SG"}
vsphere.local\administrator | 1540302338446 | | MODIFY | SUCCESS | LB-SG | true | {"includeList":{"member-1":{"name":"LB-IPset","type":"IPSet"}},"name":"LB-SG"}
| {"dynamicMembership":"{ [VM.NAME starts_with VM-] }","includeList":{"member-1":{"name":"LB-IPset","type":"IPSet"}},"name":"LB-SG"}
vsphere.local\administrator | 1542719440928 | | DELETE | SUCCESS | LB-SG | true | {"dynamicMembership":"{ [VM.NAME starts_with VM-] }","includeList":{"member-1":{"name":"LB-IPset","type":"IPSet"}},"name":"LB-SG"
} |
(3 rows)
Hope it help you.
Thanks,
Omkar Singh