Shared With me api webUrl not accessible

Dipika Das 141 Reputation points


I'm using /users/{user-id}/drive/sharedWithMe api to get all shared With Me items. And it's working also I can access the shared file items using the providing url from api i.e weburl.

The problem is when I'm trying to access the shared teams recording file(i.e teams recorded meeting) using the weburl, it's showing I'dont have access(see image below). But strange part
is from my onedrive account I can play the video. Then why i'm getting access denied page from API

Can anyone help me one this how can i access the shared recording it would be very helpful

Thanks in Advance

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,021 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,754 questions
{count} votes

Accepted answer
  1. Srinivasa Rao Darna 6,701 Reputation points Microsoft Vendor

    Hi @Dipika Das ,

    This is by design for files such as .mp4 or .pdf files, webUrl returns the full webDavUrl.

    As /drive/sharedWithMe are the files shared with you, only shareable links will give access to file not the direct path to the file as no direct access to the file is given.

    Follow below steps, to get the clickable link to teams meeting recording from Shared With Me files,

    • From the response of /me/drive/sharedWithMe take driveId and driveItemId from remoteItem.



    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

1 additional answer

Sort by: Most helpful
  1. Rafath Adil 0 Reputation points

    I'm trying to get the same but I'm get the below error while tring to access the file

    Forbidden - 403 - 725ms. Either the signed-in user does not have sufficient privileges, or you need to consent to one of the permissions on the Modify permissions tab

    i tried to generate access token for scope of SharePoint and graph api

    User's image

    0 comments No comments