<?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: team member name of a file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-member-name-of-a-file/m-p/281543#M17226</link>
    <description>&lt;P&gt;Hi, I m able to get the shared folders and files with listFolderBuilder and listFolderContinue. This is my code&lt;/P&gt;
&lt;PRE&gt;DbxRequestConfig config = new DbxRequestConfig("dropbox/java-tutorial", "en_US");
DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN);    	&lt;BR /&gt;ListFolderResultresult=client.files().listFolderBuilder("").withIncludeDeleted(true).withRecursive(true).start();
while (true) 
{
	for (Metadata metadata : result.getEntries()) 
	{
		System.out.println(metadata.getPathLower()+"\t"+metadata.getName());		
	}
	if (!result.getHasMore()) {
		break;
	}
	result = client.files().listFolderContinue(result.getCursor());
}&lt;/PRE&gt;
&lt;P&gt;this returns a json data from where i can retrieve id, name, path etc.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
	"entries":
	[
		{
			".tag":"file",
			"name":"Sample.java",
			"id":"id:nDRxdFgbLhAAAAAAAAAAJA",
			"client_modified":"2018-06-21T11:15:59Z",
			"server_modified":"2018-06-21T11:16:00Z",
			"rev":"2c9463620",
			"size":1837,
			"path_lower":"/abc/sample.java",
			"path_display":"/abc/Sample.java",
			"parent_shared_folder_id":"3376821792",
			"sharing_info":{"read_only":false,
					"parent_shared_folder_id":"3376821792",
					"modified_by":"dbid:AADz0pcde3etsRJmumakFzDDH-aJzp2vYRo"
					}
		}
	],

	"cursor":"AAHDAg8um0mKlykS0oaq2UAczjkJCm3hPYZa_8HyYwaWAZLZc_5cMJtPPLuHvltxUrdepeLalz5LxncSUPfVq915nU4fEqCIFqncL_Hxvw8cnOVL0dfQ_bTvP5f9Qhbk-Hp7qhIB8pAmZsxli60ZTFwmqLET8zUbGKbSIdSCrJ1wgfyns6NquC-TzeT4wELWDD0",
	"has_more":false
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I'm stuck how to get the sharing_info, i tried using&lt;/P&gt;
&lt;PRE&gt;FileSharingInfo data = metadata.getSharingInfo();
data.getModifiedBy();&lt;/PRE&gt;
&lt;P&gt;But it doesn't work. What am i missing here ?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jun 2018 07:04:12 GMT</pubDate>
    <dc:creator>jasmine_r</dc:creator>
    <dc:date>2018-06-22T07:04:12Z</dc:date>
    <item>
      <title>team member name of a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-member-name-of-a-file/m-p/281430#M17214</link>
      <description>&lt;P&gt;Hi, i have a shared folder with 3 users, How do i obtain the name of the user who uploads a file in the shared folder. Does the file inside the&amp;nbsp; shared folder contains any attribute about the user or Is there any api in java to find the team member name?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:12:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-member-name-of-a-file/m-p/281430#M17214</guid>
      <dc:creator>jasmine_r</dc:creator>
      <dc:date>2019-05-29T09:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: team member name of a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-member-name-of-a-file/m-p/281490#M17221</link>
      <description>&lt;P&gt;Yes, when you get the &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/FileMetadata.html" target="_blank"&gt;FileMetadata&lt;/A&gt; for a file, e.g., in the response from&amp;nbsp;DbxUserFilesRequests.&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-" target="_blank"&gt;listFolder&lt;/A&gt;/&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderContinue-java.lang.String-" target="_blank"&gt;listFolderContinue&lt;/A&gt;, you can use&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/FileMetadata.html#getSharingInfo--" target="_blank"&gt;FileMetadata.getSharingInfo&lt;/A&gt;&amp;nbsp;to get the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/FileSharingInfo.html" target="_blank"&gt;FileSharingInfo.&lt;/A&gt;&amp;nbsp;On that, you can use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/FileSharingInfo.html#getModifiedBy--" target="_self"&gt;FileSharingInfo.getModifiedBy&lt;/A&gt;&amp;nbsp;to get the account ID of the user that modified it. You can then use&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/users/DbxUserUsersRequests.html#getAccount-java.lang.String-" target="_blank"&gt;getAccount&lt;/A&gt; to get more information about that user if necessary.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 16:14:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-member-name-of-a-file/m-p/281490#M17221</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-06-21T16:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: team member name of a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-member-name-of-a-file/m-p/281543#M17226</link>
      <description>&lt;P&gt;Hi, I m able to get the shared folders and files with listFolderBuilder and listFolderContinue. This is my code&lt;/P&gt;
&lt;PRE&gt;DbxRequestConfig config = new DbxRequestConfig("dropbox/java-tutorial", "en_US");
DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN);    	&lt;BR /&gt;ListFolderResultresult=client.files().listFolderBuilder("").withIncludeDeleted(true).withRecursive(true).start();
while (true) 
{
	for (Metadata metadata : result.getEntries()) 
	{
		System.out.println(metadata.getPathLower()+"\t"+metadata.getName());		
	}
	if (!result.getHasMore()) {
		break;
	}
	result = client.files().listFolderContinue(result.getCursor());
}&lt;/PRE&gt;
&lt;P&gt;this returns a json data from where i can retrieve id, name, path etc.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
	"entries":
	[
		{
			".tag":"file",
			"name":"Sample.java",
			"id":"id:nDRxdFgbLhAAAAAAAAAAJA",
			"client_modified":"2018-06-21T11:15:59Z",
			"server_modified":"2018-06-21T11:16:00Z",
			"rev":"2c9463620",
			"size":1837,
			"path_lower":"/abc/sample.java",
			"path_display":"/abc/Sample.java",
			"parent_shared_folder_id":"3376821792",
			"sharing_info":{"read_only":false,
					"parent_shared_folder_id":"3376821792",
					"modified_by":"dbid:AADz0pcde3etsRJmumakFzDDH-aJzp2vYRo"
					}
		}
	],

	"cursor":"AAHDAg8um0mKlykS0oaq2UAczjkJCm3hPYZa_8HyYwaWAZLZc_5cMJtPPLuHvltxUrdepeLalz5LxncSUPfVq915nU4fEqCIFqncL_Hxvw8cnOVL0dfQ_bTvP5f9Qhbk-Hp7qhIB8pAmZsxli60ZTFwmqLET8zUbGKbSIdSCrJ1wgfyns6NquC-TzeT4wELWDD0",
	"has_more":false
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I'm stuck how to get the sharing_info, i tried using&lt;/P&gt;
&lt;PRE&gt;FileSharingInfo data = metadata.getSharingInfo();
data.getModifiedBy();&lt;/PRE&gt;
&lt;P&gt;But it doesn't work. What am i missing here ?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 07:04:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-member-name-of-a-file/m-p/281543#M17226</guid>
      <dc:creator>jasmine_r</dc:creator>
      <dc:date>2018-06-22T07:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: team member name of a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-member-name-of-a-file/m-p/281567#M17230</link>
      <description>&lt;P&gt;Hi, i have fixed it, i tried it with Metadata instead of FileMetadata and that was the problem. This worked without any errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;FileMetadata filemetadata = (FileMetadata)client.files().getMetadata(metadata.getPathLower());
FileSharingInfo fileSharingInfo = filemetadata.getSharingInfo();
fileSharingInfo.getModifiedBy();&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 10:44:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-member-name-of-a-file/m-p/281567#M17230</guid>
      <dc:creator>jasmine_r</dc:creator>
      <dc:date>2018-06-22T10:44:45Z</dc:date>
    </item>
  </channel>
</rss>

