The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Hi @Justin,
Sites.Selected permission is a more granular permission than Files.ReadWrite.All. If you want to create a sharelink by graph. You will need at least Files.ReadWrite.All permission. So if the role in Sites.Selected permission is lower than Files.ReadWrite.All permission, we will be unable to create the sharelink.
Here is the document for more details
https://learn.microsoft.com/en-us/graph/permissions-reference
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.