@Đặng Thế Dân , Can you check and confirm if you have the following permissions in place:
- Delegated (work or school account) Files.Read.All, Files.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All
- Delegated (personal Microsoft account) Files.Read.All, Files.ReadWrite.All
- Application Files.Read.All, Files.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All
Reference Article: https://learn.microsoft.com/en-us/onedrive/developer/rest-api/resources/shareddriveitem?view=odsp-graph-online
If these permissions are in place and still the api is not returning and thing then I would like to know what exact error you are getting when you call the api.
There is a shared resource on the driveitem. You should be able to filter on that property to find files and folders shared with other people.
Hope this helps.
Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.