Find and delete shortcuts in users OneDrives

Andrew Goodwin 46 Reputation points
2022-10-18T14:36:07.417+00:00

Is it possible via scripting/API calls to determine...

a) which users have created shortcuts (SharePoint library function "Add shortcut to OneDrive") in OneDrive

b) delete shortcuts for all/specificed users

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,810 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dillon Silzer 56,681 Reputation points
    2022-10-18T16:45:10.81+00:00

    Hi @Andrew Goodwin

    I do not believe this is possible as stated in another post at https://learn.microsoft.com/en-us/answers/questions/761174/microsoft-graph-api-how-to-get-shortcuts-when-gett.html

    Shortcuts do not appear in children, refer to all properties: https://learn.microsoft.com/en-us/graph/api/resources/drive?view=graph-rest-1.0#properties

    251702-image.png

    ---------------------------------------

    If this is helpful please accept answer.


1 additional answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 33,641 Reputation points Microsoft Vendor
    2022-10-20T08:06:44.22+00:00

    Hi @Andrew Goodwin
    Per my research, I do agree with DillonJS's answer. There is no such function to get the user who created shortcuts in onedrive currently. You could submit the feature request in Microsoft 365 Developer Platform. So they will take this into consideration.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.