python-o365 icon indicating copy to clipboard operation
python-o365 copied to clipboard

How to get the group_id which has permission for the item_id?

Open Vaishnavi21721 opened this issue 2 years ago • 3 comments

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)

Vaishnavi21721 avatar Oct 10 '23 06:10 Vaishnavi21721

This is not implemented but very easy to achieve. You can send a PR with the changes to get this Id.

alejcas avatar Oct 10 '23 07:10 alejcas

https://learn.microsoft.com/en-us/graph/api/resources/identity?view=graph-rest-1.0

alejcas avatar Oct 10 '23 07:10 alejcas

@janscas I have raised the PR

Vaishnavi21721 avatar Oct 10 '23 09:10 Vaishnavi21721