Hi @Anonymous ,
I have verified the below Microsoft Graph API end points and both returns permissions object/resource in API response.
GET /drives/{drive-id}/items/{item-id}?expand=listItem,permissions
GET /drives/{drive-id}/items/{item-id}/permissions
However as mentioned in this permissions resource documentation, grantedTo property will return IdentitySet and the IdentitySet resource and it's supported properties are application,device and user. M365 Group is no more supported property of IdentitySet and hence you might be seeing the difference in response.
Please note the below 2 important points on permissions resource type :
- As mentioned here, grantedTo and grantedToIdentities will be deprecated going forward and the response will be migrated to grantedToV2 and grantedToIdentitiesV2 respectively under appropriate property names.
2.As mentioned here, grantedToV2 propery will return SharePointIdentitySet resource and currently it supports siteUser (i.e,SharePoint user) and siteGroup (i.e., SharePoint group) properies. It does not support or return M365 group property.
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have any further questions about this answer, please click "Comment".