python-o365
python-o365 copied to clipboard
How to get the group_id which has permission for the item_id?
In the class DriveItemPermission the variable granted_to only has the display_name value. I want to access the id also . how culd I do? self.granted_to = granted_to.get('user', {}).get( self._cc('displayName')) or granted_to.get('application', {}).get( self._cc('displayName')) self.share_id = cloud_data.get(self._cc('shareId'), None)
This is not implemented but very easy to achieve. You can send a PR with the changes to get this Id.
https://learn.microsoft.com/en-us/graph/api/resources/identity?view=graph-rest-1.0
@janscas I have raised the PR