Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Cloud D.
11 years agoNew member | Level 1
Business API - Audit Log - Share event missing critical information
I am building a Security Audit solution for "Dropbox for Business" clients. The main information source is the new Business API - Audit Log endpoint (https://api.dropbox.com/1/team/log/get_events)
In sharing events, there seem be to two different way of referencing the Shared Folder
Events that specify the folder's full path:
{
event_type: "shmodel_create"`
member_id: null
info_dict:
{
path: "/Folder1/Folder2"
}
ip_address: "123.123.123.123"
user_id: 123123123
name: "Some Username"
country: "US"
event_type_description: "Created a new link"
event_category: "sharing"
time: "2014-08-12T08:18:03+00:00"
email: "some.username@company.com"
}
Events that specify only the folder's name:
{
event_type: "sf_create"
member_id: "dbmid:--- memberID ---"
info_dict:
{
folder_name: "Folder2"
}
ip_address: "123.123.123.123"
user_id: 123123123
name: "Some Username"
country: "US"
event_type_description: "Created a shared folder"
event_category: "sharing"
time: "2014-12-01T11:13:14+00:00"
email: "some.username@company.com"
}
I can use the first type to associate the event with a certain business resource (folder), but the second one seems useless - In the case of sharing two different folders with the same immediate name - the event looks exactly the same. there is no way to differentiate which is which.
This is true for many types of events! Generally, all link sharing events are generated with full path reference, while invitation/collaboration sharing events generated with "folder_name" reference.
How is one supposed to resolve the the second tyoe "folder_name" reference to a full path?
How can I identify the folder that the share event is referencing?
2 Replies
Replies have been turned off for this discussion
- Steve M.11 years ago
Dropbox Staff
Cross-linking with Stack Overflow: http://stackoverflow.com/questions/27706669/business-api-audit-log-share-event-missing-critical-information.
- Josh S.111 years agoNew member | Level 1
Unfortunately there is not currently a way to uniquely identify a shared folder from the audit log.
As a temporary solution, you could use the /shared_folders endpoint (https://www.dropbox.com/developers/core/docs#shared-folders) for the given user account to get a list of their shared folders, and match against these shared folder names. This has some edge cases, but should work in many situations.
Shared folder and shared link (shmodel) API support is a work in process, and this is one of the known requests we hope to address.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!