Is there any Box Event API to capture user creation and login
Hi,
I am looking for way to find if new users have been created and/or logged in to Box. Is there any even based API that will do this? I looked at the event API which streams several event types like file/folder/colaboration but not in account creation and/or logins.
Thank You
-
New user creation and login events are both available through our Enterprise Events endpoint.
When you query the Enterprise Events endpoint, you can filter for specific event types using the event_type parameter. The API event name for new user creation is "NEW_USER". The API event name for login is "LOGIN".
-
Thank you for pointing me to right direction Murtza.
On the same events, how will I know that there are more events left that I need to fetch if I am picking just 200 events at a time ( with limit=200) lets say since created_after=01/01/2017? is there any flag/attribute that is returned in the result that says there are more events than initial 200 fetch ?
Also what is the max events limit, for limit param ?
Thank You
-
The response will include an attribute called "next_stream_position" to get the next set of events. The response will also include an attribute called "chunk_size" that notes how many events were returned. If you are using 200 as the limit and the chunk_size returned is less than 200, you will know there are currently no more events to return.
I am confirming the max limit and will update this thread once I have that information.
Please sign in to leave a comment.
Comments
4 comments