While working on a solution in our D365 Dev environment, we noticed some components had been accidentally added.
When we checked with the team, no one admitted to adding them.
So I’ve prepared the scripts below to find out exactly who added or modified these components, hope it helps.
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="solutioncomponent">
<all-attributes/>
<link-entity name="systemuser" from="systemuserid" to="createdby" alias="adder">
<attribute name="fullname"/>
<attribute name="firstname"/>
<attribute name="lastname"/>
</link-entity>
<link-entity name="systemuser" from="systemuserid" to="modifiedby" alias="modder">
<attribute name="fullname"/>
<attribute name="firstname"/>
<attribute name="lastname"/>
</link-entity>
<filter type="and">
<condition attribute="solutionid" operator="eq" value="{Solution GUID}"/>
<condition attribute="componenttype" operator="eq" value="1"/> <!-- 1 means Entity -->
</filter>
</entity>
</fetch>