How to use Graph API to list Bookmarks by given item id

s w 110 Reputation points
2024-04-17T17:14:42.5666667+00:00

In the Microsoft documentation I found an API call to get a list of bookmarks: https://learn.microsoft.com/en-us/graph/api/search-searchentity-list-bookmarks?view=graph-rest-1.0&tabs=http#request-headers

However when I try the command in the graph explorer, it shows an error (note this is not in beta version) User's image

I just wonder why that happens, did I missing something in my request?

Also if possible, can I pass my site id and item id as parameter to the request, so I can get a list of bookmarks for specific file?

If not, is there a way to get the bookmark information in the sharepoint file by API call?

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

Answer accepted by question author
  1. CarlZhao-MSFT 46,406 Reputation points
    2024-04-18T10:14:17.3266667+00:00

    Hi @s w

    You need to consent to one of the SearchConfiguration.Read.All or SearchConfiguration.ReadWrite.All delegated permissions, and the logged-in user must have the administrator role.

    User's image

    Also, as far as I know, there is currently no way to get a list of bookmarks for a specific SharePoint file using the graph API.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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