Find which files are shared in iCloud Drive
I'd like to have a robust method to find this out too. The only method I know is this: (bold is the key step, very verbose here to be understood by everyone)


go to the iCloud Drive folder you want to find shared files
search in this folder, by say, Cmd + F
make sure current directory is selected, not "This Mac"
search by string shared by me (quoted "shared by me" would not work)
hopefully all documents "shared by me" is shown, per document,


optionally, right click and click Show in Enclosing Folder, only in the enclosing folder you will be able to see the file is marked as "shared by me"
right click on the "Shared by me" file, Share &gt; Show People
select Share Options, choose Stop Sharing



This method is not robust however as you can imagine if a document has a name containing "shared by me" or so would match.

I tried checking the xattr without success. It will be great if there's a robust method be it command line or GUI.