'Why am I only getting sharepoint groups when requesting a DriveObject's permissions

I am calling /drives/drive-id/items/item-id?expand=listItem,permissions and am only getting sharepoint groups listed in the file's permissions. There are microsoft 365 groups assigned to the sharepoint site and I have seen the corresponding 365 group listed in this very permissions list before, but it seems to have disappeared.

The scope of the access token I am using is: User.ReadBasic.All+Group.Read.All+Directory.AccessAsUser.All+Files.Read+Files.Read.All+Sites.Read.All+offline_access



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source