Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.

Forum Discussion

JohnAdam_CUNY's avatar
JohnAdam_CUNY
Helpful | Level 6
7 months ago

Error updating Preferred Name ( New First and Last name )

We got a requirement to update our Dropbox first and last name. Is it simply to to use info to update an existing user Dropbox first name and last name. Our wrote the code using json API but not as f...
  • JohnAdam_CUNY's avatar
    JohnAdam_CUNY
    7 months ago

    Documentation is not clear. See solution. Please advise if I misunderstood anything.


    team_members_set_profile_v2(user, new_email=None, new_external_id=None, new_given_name=None, new_surname=None, new_persistent_id=None, new_is_directory_restricted=None)


    if len(fname) != 0:
    result = dbx_team.team_members_set_profile_v2(user=user, new_given_name=fname)
    print(result)
    if len(lname) != 0:
    result = dbx_team.team_members_set_profile_v2(user=user, new_surname=lname)
    print(result)