I know there are a lot of options out there for DMARC report gathering, but as a project to get used to MSGraph API I wanted to write a script to send a csv report of our DMARC mailbox. It includes calls to our password manager to get the connection info for the application I made to interact with graph. It gives a csv that looks like this

I attempted to use a code block to post the directly here, but it didn’t want to format correctly so here is the pastebin link

https://pastebin.com/VeZwkZhB