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

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    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 40,476 Reputation points Microsoft External Staff
    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.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.