You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
dsoprea
2 years agoHelpful | Level 6
How to get account object for file uploader?
We have an app that's using team-scoped credentials. A particular file has a `modified_by` attribute that returns an account ID. We have a team-scoped resource (created by constructing a `DropboxTeam...
Здравко
Legendary | Level 20
Haha..😀 Hi dsoprea,
Yes, good equilibristics, but as can be seen in error message you're relying on methods (users_get_account(account_id) in particular) that require User authentication already and cannot work on Team authentication (what you're trying)! 😉
Unfortunately, this is not mentioned in Dropbox Python SDK documentation in a proper way. 🤔 Let's hope will be improved.
The better way is usage of users_get_current_account() method. Here you don't need to probe for proper account id (such id can be any on a file - including such that's outside the team and it's optional - exists only on shared objects).
I believe you know what's next.
dsoprea
2 years agoHelpful | Level 6
How would getting my own account help me get the account of the uploader?
Are you saying that you think that there's no way of looking up users/members by account ID within the context of this app (my original question)?
Are you saying that you think that there's no way of looking up users/members by account ID within the context of this app (my original question)?
- Здравко2 years agoLegendary | Level 20
Hm..🤔 To be honest, I have no idea what you ask me for...
What you mean: account of the uploader 🧐
Isn't it your own account or account of this "uploader"'s user (whoever is he)? If so, the method above does this... or what's wrong actually? 🤷 ... Can you clarify?
dsoprea wrote:
...
Are you saying that you think that there's no way of looking up users/members by account ID within the context of this app (my original question)?You can, of course... I have never said that! You asked just "Is there nothing more specific/efficient?" and... that's what I said.
- dsoprea2 years agoHelpful | Level 6
See the second sentence of the first post. I'm not talking about me, I'm talking about whomever uploaded/modified the file that the app is being notified about.
I'm not asking you anything, specifically. I'm asking the community.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 10 minutes agoIf 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 or Facebook.
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!