<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: &amp;quot;users/get_current_account&amp;quot;: Invalid select user id format error. in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627576#M29029</link>
    <description>&lt;P&gt;For the DbxTeamClient I do not have a way to list all the folders and files for each member of the Namespace. So I have to switch to the DbxClientV2 to do that. If you can list all the folders and files for each member of the team in the same Namespace using the DbxTeamClient, could you please show me a code snippet how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 15:38:23 GMT</pubDate>
    <dc:creator>trithanhnguyen</dc:creator>
    <dc:date>2022-10-06T15:38:23Z</dc:date>
    <item>
      <title>"users/get_current_account": Invalid select user id format error.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627564#M29024</link>
      <description>&lt;P&gt;I have a test program and it works fine in Windows 11. When I ported the code into Centos 7 and ran it, it returned an error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;com.dropbox.core.BadRequestException: Error in call to API function "users/get_current_account": Invalid select user id format&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using Java 8 and Dropbox SDK version 4.0.1. This is portion of the code that causes the problem:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;static List&amp;lt;EventLog&amp;gt; getFilesFromMember(List&amp;lt;EventLog&amp;gt; fileLog,&lt;BR /&gt;String teamMemberId,&lt;BR /&gt;String teamMemberEmail,&lt;BR /&gt;String ownerName) throws DbxException&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; DbxClientV2 dbxClient = dbxTeamClient.asMember(teamMemberId);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; FullAccount acc = dbxClient.users().getCurrentAccount(); //Work fine in Windows 11 but fails in Centos 7 server.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; String rootNs = acc.getRootInfo().getRootNamespaceId();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; dbxClient = dbxClient.withPathRoot(PathRoot.namespaceId(rootNs));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ListFolderResult fileRes = dbxClient.files().listFolderBuilder("").withRecursive(true).start();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestion to fix it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 12:31:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627564#M29024</guid>
      <dc:creator>trithanhnguyen</dc:creator>
      <dc:date>2022-10-07T12:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: "users/get_current_account": Invalid select user id format error.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627569#M29025</link>
      <description>&lt;P&gt;This is a full error messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;com.dropbox.core.BadRequestException: Error in call to API function "users/get_current_account": Invalid select user id format&lt;BR /&gt;at com.dropbox.core.DbxRequestUtil.unexpectedStatus(DbxRequestUtil.java:337)&lt;BR /&gt;at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:154)&lt;BR /&gt;at com.dropbox.core.v2.DbxRawClientV2.executeRetriable(DbxRawClientV2.java:330)&lt;BR /&gt;at com.dropbox.core.v2.DbxRawClientV2.executeRetriableWithRefresh(DbxRawClientV2.java:351)&lt;BR /&gt;at com.dropbox.core.v2.DbxRawClientV2.rpcStyle(DbxRawClientV2.java:137)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:19:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627569#M29025</guid>
      <dc:creator>trithanhnguyen</dc:creator>
      <dc:date>2022-10-06T15:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: "users/get_current_account": Invalid select user id format error.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627571#M29026</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1579762"&gt;@trithanhnguyen&lt;/a&gt;, Are you sure your 'teamMemberId' parameter carries correct value? Print it out and check the place where/how you get it from and is on that place something 'strange'. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:24:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627571#M29026</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-10-06T15:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: "users/get_current_account": Invalid select user id format error.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627572#M29027</link>
      <description>&lt;P&gt;I did print the teamMemberId to the log in the Centos server and checked it. It is correct string ID (I compare it with the one from the Windows 11 program).&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:26:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627572#M29027</guid>
      <dc:creator>trithanhnguyen</dc:creator>
      <dc:date>2022-10-06T15:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: "users/get_current_account": Invalid select user id format error.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627574#M29028</link>
      <description>&lt;P&gt;Better perform this call on 'dbxTeamClient' context. So you wouldn't need 'broken; parameter (it's meaningless actually). &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:33:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627574#M29028</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-10-06T15:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: "users/get_current_account": Invalid select user id format error.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627576#M29029</link>
      <description>&lt;P&gt;For the DbxTeamClient I do not have a way to list all the folders and files for each member of the Namespace. So I have to switch to the DbxClientV2 to do that. If you can list all the folders and files for each member of the team in the same Namespace using the DbxTeamClient, could you please show me a code snippet how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:38:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627576#M29029</guid>
      <dc:creator>trithanhnguyen</dc:creator>
      <dc:date>2022-10-06T15:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: "users/get_current_account": Invalid select user id format error.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627579#M29030</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1579762"&gt;@trithanhnguyen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;For the DbxTeamClient I do not have a way to list all the folders and files for each member of the Namespace. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Does the listing fail? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Or something else before actual listing call...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1579762"&gt;@trithanhnguyen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... So I have to switch to the DbxClientV2 to do that. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Of course, there is no other way. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Take a bit more care.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: alternative can be passing client object ready to use for listing (without need of any additional actions - like the failing one).&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:50:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627579#M29030</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-10-06T15:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: "users/get_current_account": Invalid select user id format error.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627588#M29031</link>
      <description>&lt;P&gt;Your suggestion to check the teamMemberId is very helpful. I did make some change after I ported the code that messed up the ID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 16:05:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-users-get-current-account-quot-Invalid-select-user-id/m-p/627588#M29031</guid>
      <dc:creator>trithanhnguyen</dc:creator>
      <dc:date>2022-10-06T16:05:21Z</dc:date>
    </item>
  </channel>
</rss>

