box / box-python-sdk

Box SDK for Python
http://opensource.box.com/box-python-sdk/
Apache License 2.0
417 stars 214 forks source link

I can't get ITEM_PREVIEW and ITEM_DOWNLOAD event without owner role #795

Closed c-rei closed 1 year ago

c-rei commented 1 year ago

I use the event api learning the usage doc, like below. stream_position = 0 events = client.events().get_events(stream_position=stream_position) stream_position = events['next_stream_position'] for event in events['entries']: print(f'Got {event.event_type} event that occurred at {event.created_at}')

If I have owner role, I can get ITEM_UPLOAD, ITEM_PREVIEW , ITEM_DOWNLOAD and other event type. But if I have co-owner or editor role as a collaborator, I can't get ITEM_PREVIEW and ITEM_DOWNLOAD events created by other user. Even this situation I also can get ITEW_UPLOAD events and other event type.

So I want to known what's wrong with my usage, I just want to get ITEM_PREVIEW and ITEM_DOWNLOAD events created by other user with in the situation that I don't have owner role, just as a collaborator with co-owner or editor role.

Thanks any help.

Versions Used

Python SDK: 3.5.0 Python: 3.8.10

mwwoda commented 1 year ago

I'm not sure about this particular use case, but it may be due to different roles as owner and co-owner/editor are still techincally different - see https://support.box.com/hc/en-us/articles/360044196413-Understanding-Collaborator-Permission-Levels, so they may have different event feed. You can also try to see if you get different results when using EnterpriseEvents.

I would advise you to consider posting this question on our forums https://support.box.com/hc/en-us/community/topics as it looks more API related than SDK related.

c-rei commented 1 year ago

Thanks your response, I will try EnterpriseEvents and let you known the results.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.

stale[bot] commented 1 year ago

This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box Python SDK and feel free to open another PR/issue at any time.