Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Vaishnavi21721 opened this issue Oct 10, 2023 · 3 comments
Open

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

Vaishnavi21721 opened this issue Oct 10, 2023 · 3 comments

Comments

@Vaishnavi21721
Copy link

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 Vaishnavi21721 changed the title How to get the group_id wwhihc has permission for the item_id How to get the group_id wwhihc has permission for the item_id? Oct 10, 2023
@alejcas
Copy link
Member

alejcas commented Oct 10, 2023

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

@alejcas
Copy link
Member

alejcas commented Oct 10, 2023

@Vaishnavi21721
Copy link
Author

@janscas I have raised the PR

@Vaishnavi21721 Vaishnavi21721 changed the title How to get the group_id wwhihc has permission for the item_id? How to get the group_id which has permission for the item_id? Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants