13,721 questions
Hi Nithin,
I think your can refer this document create the share link
https://learn.microsoft.com/en-us/graph/api/driveitem-createlink?view=graph-rest-1.0&tabs=http
Here is the screenshot for creating the share link. Use the webUrl to open the file. You also can set a password when creating the link
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".