We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
Filip J.1
9 years agoNew member | Level 1
Get Account Id from UserInfoMembership using Team Client .NET
I am using a dropbox admin account and using ListFolderMembersAsync and grabbing the UserMemberShipInfo which returns UserInfo. When I get this data returned some of the accounts have TeamMemberId wh...
Greg-DB
9 years agoDropbox Staff
UserInfo.TeamMemberId is documented as "The team member ID of the shared folder member. Only present if SameTeam is true.", meaning it will only be present if "the user is in the same team as current user." The "current user" here is the user you're making the ListFolderMembersAsync call for. (That is, by setting AsMember on the team client.)
When you say you "try to use a regular AccountId instead of TeamMemberId", where are you supplying the account ID?
If you just want information about that other user, what you should do is call GetAccountAsync with the account ID you're interested in as the accountId parameter, using a team client with AsMember still set to the same member that you used to call ListFolderMembersAsync in the first place. (If the user for the accountId isn't on the same team, you don't have authorization to make calls on their behalf, using AsMember, anyway.)
If you're still having trouble, please share some code that shows the issue.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 2 hours 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!