To check the permissions for the particular user who has permissions:
GET /users/{userId}/drive/items/{itemId}/permissions
Permissions for accessing this API:
For more information please refer: https://learn.microsoft.com/en-us/graph/api/driveitem-list-permissions?view=graph-rest-1.0&tabs=python#example
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".