List items "Shared By Me" in Microsoft Graph

%3CLINGO-SUB%20id%3D%22lingo-sub-339456%22%20slang%3D%22en-US%22%3EList%20items%20%22Shared%20By%20Me%22%20in%20Microsoft%20Graph%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339456%22%20slang%3D%22en-US%22%3E%3CP%3EI%20really%20need%20to%20be%20able%20to%20run%20a%20report%20and%20list%20all%20items%20in%20OD4B%20and%20SPO%20that%20have%20been%20shared%20by%20a%20user%20from%20an%20API.%20Given%20MS%20Graph%20is%20meant%20to%20be%20the%20place%20to%20be%2C%20and%20is%20replacing%20the%20OneDrive%20API%20I%20assumed%20I%20could%20use%20a%20query%20along%20the%20lines%20of%20%7Bgraph%20uri%7D%2Fusers%2F%7Buser%20id%7D%2Fdrives%2Fshared%20but%20no%20joy.%20A%20user%20can%20list%20and%20manage%20the%20files%20that%20have%20active%20sharing%20links%20by%20going%20to%20the%20OneDrive%20portal%20and%20viewing%20the%20SharedByMe%20list.%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20reporting%20is%20essential%20as%20we%20have%20to%20be%20able%20to%20manage%20externally%20sharing%20of%20files%20as%20part%20of%20our%20security%20policies.%20If%20it%20is%20only%20accessible%20through%20the%20OneDrive%20API%20then%20how%20can%20I%20implement%20OneDrive%20API%20application%20permissions%20as%20this%20doesn't%20seem%20to%20be%20available%20in%20the%20AzureAD%20Application%20Registration%20blade.%3CBR%20%2F%3E%3CBR%20%2F%3EMany%20thanks%20in%20advance%20for%20any%20help%20you%20can%20provide.%3CBR%20%2F%3E%3CBR%20%2F%3EYours%2C%20Tom%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-339456%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%20%26amp%3B%20Compliance%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-339883%22%20slang%3D%22en-US%22%3ERe%3A%20List%20items%20%22Shared%20By%20Me%22%20in%20Microsoft%20Graph%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339883%22%20slang%3D%22en-US%22%3EThanks%20Vasil%3CBR%20%2F%3E%3CBR%20%2F%3EMSFT%20please%20add%20this%20to%20Graph.%20Link%20sharing%20from%20OD4B%20and%20SPO%20is%20very%20useful%20%3B%20but%20without%20appropriate%20reporting%20the%20information%20risk%20is%20far%20too%20great%20to%20remain%20enabled.%20Surely%20it%20shouldn't%20be%20too%20difficult%20given%20the%20functionality%20is%20already%20in%20the%20Web%20interface%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-339856%22%20slang%3D%22en-US%22%3ERe%3A%20List%20items%20%22Shared%20By%20Me%22%20in%20Microsoft%20Graph%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339856%22%20slang%3D%22en-US%22%3E%3CP%3EAfaik%20the%20graph%20only%20supports%20%3CFONT%20color%3D%22%23242729%22%20face%3D%22Consolas%22%20size%3D%222%22%20style%3D%22background-color%3A%20rgb(239%2C%20240%2C%20241)%3B%22%3EsharedWithMe%3C%2FFONT%3E%3CSPAN%20style%3D%22text-align%3A%20left%3B%20color%3A%20rgb(36%2C%2039%2C%2041)%3B%20text-transform%3A%20none%3B%20text-indent%3A%200px%3B%20letter-spacing%3A%20normal%3B%20font-family%3A%20Arial%2C%20%26quot%3BHelvetica%20Neue%26quot%3B%2C%20Helvetica%2C%20sans-serif%3B%20font-size%3A%2015px%3B%20font-style%3A%20normal%3B%20font-weight%3A%20400%3B%20word-spacing%3A%200px%3B%20float%3A%20none%3B%20display%3A%20inline%20!important%3B%20white-space%3A%20normal%3B%20orphans%3A%202%3B%20widows%3A%202%3B%20background-color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-variant-ligatures%3A%20normal%3B%20font-variant-caps%3A%20normal%3B%20-webkit-text-stroke-width%3A%200px%3B%20text-decoration-style%3A%20initial%3B%20text-decoration-color%3A%20initial%3B%22%3E%3CSPAN%3E%3CFONT%20face%3D%22Arial%22%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FSPAN%3Ecurrently%2C%20but%20interested%20to%20know%20if%20there%20is%20indeed%20a%20method...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-402712%22%20slang%3D%22en-US%22%3ERe%3A%20List%20items%20%22Shared%20By%20Me%22%20in%20Microsoft%20Graph%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-402712%22%20slang%3D%22en-US%22%3EReally%20need%20that%20feature%2C%20company%20doing%20compliance%20and%20I%20have%20to%20show%20them%20the%20list%20of%20users%20permissions%20of%20their%20sharing%20file(s).%20Have%20created%20an%20web%20application%20which%20require%20employees%20to%20review%20their%20current%20status%20of%20shared%20file(s).%20Reviewed%20report%20will%20be%20saved%20in%20our%20database%20and%20show%20it%20to%20auditor.%20Without%20the%20%22sharedByMe%22%20API%20I'd%20hard%20coded%20it......%20and%20always%20triggered%20throttling......%3C%2FLINGO-BODY%3E
New Contributor

I really need to be able to run a report and list all items in OD4B and SPO that have been shared by a user from an API. Given MS Graph is meant to be the place to be, and is replacing the OneDrive API I assumed I could use a query along the lines of {graph uri}/users/{user id}/drives/shared but no joy. A user can list and manage the files that have active sharing links by going to the OneDrive portal and viewing the SharedByMe list.

This reporting is essential as we have to be able to manage externally sharing of files as part of our security policies. If it is only accessible through the OneDrive API then how can I implement OneDrive API application permissions as this doesn't seem to be available in the AzureAD Application Registration blade.

Many thanks in advance for any help you can provide.

Yours, Tom

3 Replies

Afaik the graph only supports sharedWithMe currently, but interested to know if there is indeed a method...

Thanks Vasil

MSFT please add this to Graph. Link sharing from OD4B and SPO is very useful ; but without appropriate reporting the information risk is far too great to remain enabled. Surely it shouldn't be too difficult given the functionality is already in the Web interface

Really need that feature, company doing compliance and I have to show them the list of users permissions of their sharing file(s). Have created an web application which require employees to review their current status of shared file(s). Reviewed report will be saved in our database and show it to auditor. Without the "sharedByMe" API I'd hard coded it...... and always triggered throttling......