Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Cloud D.'s avatar
Cloud D.
New member | Level 1
11 years ago

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

About Dropbox API Support & Feedback

Node avatar for 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!