We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Filip J.1
10 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
Dropbox Community Moderator
10 years agoUserInfo.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.
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!