We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Andrew C.67
11 years agoNew member | Level 1
Is there any way of getting user's profile picture?
As far as I know there is no API for that in both v1 and upcoming v2 of Dropbox Core API. Is there any workaround? E.g. can I manually make an URL for getting a user's photo (given I have an access token)?
6 Replies
- Greg-DB11 years ago
Dropbox Community Moderator
Unfortunately, no, it's not currently possible to get the profile picture via the API, but I'll be sure to pass this along as a request.
- Steve K.4511 years agoNew member | Level 1
We need this too. Would like to push profile pictures from AD to Dropbox via Okta automatically. Making it available in the API is the first step.
- Kyle N.111 years agoNew member | Level 1
I need this too. We'd very much like to make a beautiful experience for the users of the planned Ubuntu Scope for Dropbox, and showing the user their current profile photo (in addition to have an HTTP API to modify it) would be really nice.
- luiz fernando s10 years agoNew member | Level 1
curl -X POST https://api.dropboxapi.com/2/users/get_current_account
--header 'Authorization: Bearer <TOKEN>'
--header 'Content-Type: application/json'
--data 'null'
REPLY
[....]
"account_id": "ID-OF-USER",
[....]
https://dl-web.dropbox.com/account_photo/get/ID-OF-USER?vers=1469058358325&size=64x64
vers is the current timestamp, to grab the last photo
size, I think this is square, and I don't know the sizes, like 128x128, 32x32, etc - Greg-DB10 years ago
Dropbox Community Moderator
Thanks for posting this Luiz! That's correct, it's now possible to get the profile picture in API v2 via profile_photo_url returned by /users/get_current_account.
- Greg-DB7 years ago
Dropbox Community Moderator
It's also now possible to set the profile picture using /2/account/set_profile_photo.
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!