OneDrive permission list api is providing incorrect data.

Elevated Abinesh Rajender 0 Reputation points
2025-10-15T03:20:15.9266667+00:00

OneDrive permission list api is providing incorrect data. API: GET /drives/{drive-id}/items/{item-id}/permissions

https://free.blessedness.top/en-us/onedrive/developer/rest-api/api/driveitem_list_permissions?view=o…

 

for internally shared files (shared within organization) the scope for link is coming as anonymous but according to their official api documentation for internally shared files the scope should be organization.

 

official documentation link: https://free.blessedness.top/en-us/onedrive/developer/rest-api/resources/sharinglink?view=odsp-graph…

Microsoft 365 and Office | Development | Microsoft 365 Developer Program
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vergil-V 6,060 Reputation points Microsoft External Staff Moderator
    2025-10-15T05:37:31.9933333+00:00

    Hi @Elevated Abinesh Rajender 
    Thank you for reaching out to the Microsoft Q&A forum and letting us know about the behavior where the scope appears as 'anonymous' when running the GET /drives/{drive-id}/items/{item-id}/permissions endpoint

    I truly appreciate the article you referenced; it was very helpful in guiding my testing and research.  I'm happy to share what I've discovered so far: 

    In my experience, when the sharing link is set to "Anyone", the scope returned is "anonymous". undefined

     undefined

    When the link is set to "People in Contoso", the scope returned is "organization". 

     undefined undefined

     

    To help manage link access, you may find the following resources useful: 

    The behavior I observed aligns well with the scope definitions described in the SharingLink resource type.

    undefined I sincerely hope this information clarifies your situation. Please do not hesitate to reply if you have any updates.  

    Thank you for your understanding.  


    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.