cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

change admin role API incorrect

Explorer | Level 3

Hi Dropbox devs,

 

I found some incorrect results when I retrieve member event via Dropbox Business API (/get_events).
1. member_change_admin_role:
a) the new_value and previous_value in detail are not right.
b) when a user is given admin permission , there's no previous_value in detail in the result json.

example: give a user team admin permission, it returns:
"details": {
".tag": "member_change_admin_role_details",
"new_value": {
".tag": "user"
}
}

example: remove a member's admin permission, it returns:
"details": {
".tag": "member_change_admin_role_details",
"previous_value": {
".tag": "user"
}
}

example: change member's admin permission from team admin to User management admin, it returns:
"details": {
".tag": "member_change_admin_role_details",
"new_value": {
".tag": "limited_admin"
},
"previous_value": {
".tag": "user"
}
}

2. member_change_name:
when a new added member joins in (becomes active, member_add_name should happen at the same time, but not in this case),
this event happens and the previous_value are incorrect. In fact the member doesn't change his name.

example(there's no changing name operation):
"details": {
".tag": "member_change_name_details",
"new_value": {
"given_name": "A",
"surname": "Chow",
"locale": "en"
},
"previous_value": {
"given_name": "Chow",
"surname": "Chow"
}
}

Thanks.

5 Replies 5
Highlighted

Re: change admin role API incorrect

Dropboxer
Dropboxer
Thanks for writing this up. We'll look into it.

I'm not sure I understand your description of the issue 2 though. Can you elaborate? Note that 'member_change_name_details' can differ because 'locale' might originally be missing due to a historical data gap.

Highlighted

Re: change admin role API incorrect

Explorer | Level 3

Thanks for the reply,

 

let me make issue 2 clear:

when an invited user joined, "member_change_name_details" event triggered, even this user didn't change his name.

 

Highlighted

Re: change admin role API incorrect

Dropboxer
Dropboxer
Thanks! I just tried it out though, and I am only seeing a 'member_add_name' event with the correct values.

Are you still seeing this? If so, can you share the specific steps to reproduce it, as well as your request/response showing the issue? (Just be sure to redact the access token of course.) Thanks in advance!
Highlighted

Re: change admin role API incorrect

Explorer | Level 3

I tried again, now only member_add_name triggered.

work as expected.

 

Thanks.

Highlighted

Re: change admin role API incorrect

Dropboxer
Dropboxer
The issue with unexpected results from member_change_admin_role should be fixed now. Please try again and let us know if you're still seeing any issues with that.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?