<?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 Get all shared links for a file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/677953#M30533</link>
    <description>&lt;P&gt;I have a .net app that needs to get all of the shared links for a particular file.&amp;nbsp; The only way I can see to do this is to:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Get a DropboxTeamClient with&amp;nbsp;"team_info.read", "team_data.member", "groups.read" scopes&lt;/LI&gt;
&lt;LI&gt;Get the proper group id through&amp;nbsp;TeamTeamRoutes.GroupsListAsync&lt;/LI&gt;
&lt;LI&gt;Get all of the members of the group&amp;nbsp;through&amp;nbsp;TeamTeamRoutes.GroupsMembersListAsync&lt;/LI&gt;
&lt;LI&gt;Cycle through the GroupMemberInfo getting the TeamMemberId, and then get a DropboxClient from&amp;nbsp;DropboxTeamClient.AsMember(TeamMemberId)&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Get all of the shared links for that file, for that member, using SharingUserRoutes.ListSharedLinksAsync&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I am an Admin and have approved this app during authorization.&amp;nbsp; This all works well on my computer.&amp;nbsp; If another user, who is not an Admin, tries to get an authorization token they receive an error message saying "You must be a team administrator to authorize this app.&amp;nbsp; Either login to a Dropbox for Business admin account, or contact an existing administrator for your team."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I authorize a non-Admin user, or is there a better way to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2023 11:42:49 GMT</pubDate>
    <dc:creator>icefishandrew</dc:creator>
    <dc:date>2023-04-21T11:42:49Z</dc:date>
    <item>
      <title>Get all shared links for a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/677953#M30533</link>
      <description>&lt;P&gt;I have a .net app that needs to get all of the shared links for a particular file.&amp;nbsp; The only way I can see to do this is to:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Get a DropboxTeamClient with&amp;nbsp;"team_info.read", "team_data.member", "groups.read" scopes&lt;/LI&gt;
&lt;LI&gt;Get the proper group id through&amp;nbsp;TeamTeamRoutes.GroupsListAsync&lt;/LI&gt;
&lt;LI&gt;Get all of the members of the group&amp;nbsp;through&amp;nbsp;TeamTeamRoutes.GroupsMembersListAsync&lt;/LI&gt;
&lt;LI&gt;Cycle through the GroupMemberInfo getting the TeamMemberId, and then get a DropboxClient from&amp;nbsp;DropboxTeamClient.AsMember(TeamMemberId)&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Get all of the shared links for that file, for that member, using SharingUserRoutes.ListSharedLinksAsync&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I am an Admin and have approved this app during authorization.&amp;nbsp; This all works well on my computer.&amp;nbsp; If another user, who is not an Admin, tries to get an authorization token they receive an error message saying "You must be a team administrator to authorize this app.&amp;nbsp; Either login to a Dropbox for Business admin account, or contact an existing administrator for your team."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I authorize a non-Admin user, or is there a better way to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 11:42:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/677953#M30533</guid>
      <dc:creator>icefishandrew</dc:creator>
      <dc:date>2023-04-21T11:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get all shared links for a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/677986#M30534</link>
      <description>&lt;P&gt;When using any "team" scopes, the app can only be authorized by a team admin, because it would be connected to the entire team, not just a particular account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just want to connect to a particular account, you can disable any team scopes, so that it can be authorized by non-admins. Access tokens/refresh tokens without the team scopes will be specific to the particular account (Business or not) and so would not require you to get a member ID and use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.DropboxTeamClient.html#Dropbox_Api_DropboxTeamClient_AsMember_System_String_" target="_blank"&gt;AsMember&lt;/A&gt;; you would instead make a &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.DropboxClient.html" target="_blank" rel="noopener"&gt;DropboxClient&lt;/A&gt; directly (not a &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.DropboxTeamClient.html" target="_blank" rel="noopener"&gt;DropboxTeamClient&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, the &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.Sharing.Routes.SharingUserRoutes.html#Dropbox_Api_Sharing_Routes_SharingUserRoutes_ListSharedLinksAsync_System_String_System_String_System_Nullable_System_Boolean__" target="_blank" rel="noopener"&gt;ListSharedLinksAsync&lt;/A&gt; method requires the 'sharing.read' scope, which isn't a team scope. You can find more information on scopes in &lt;A href="https://www.dropbox.com/lp/developers/reference/oauth-guide" target="_blank" rel="noopener noreferrer"&gt;the OAuth Guide&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't need to call any team endpoints (e.g., if you just need to call user methods, such as &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.Sharing.Routes.SharingUserRoutes.html#Dropbox_Api_Sharing_Routes_SharingUserRoutes_ListSharedLinksAsync_System_String_System_String_System_Nullable_System_Boolean__" target="_blank" rel="noopener"&gt;ListSharedLinksAsync&lt;/A&gt;), I recommend this solution instead for simplicity and security.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 17:34:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/677986#M30534</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-04-19T17:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get all shared links for a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/677993#M30535</link>
      <description>&lt;P&gt;Thanks Greg.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get all of the shared links that exist for a file, without using the DropboxTeamClient?&amp;nbsp; If I only have a DropboxClient for the current user, I can only see the shared links for a file for that user, correct?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 17:41:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/677993#M30535</guid>
      <dc:creator>icefishandrew</dc:creator>
      <dc:date>2023-04-19T17:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get all shared links for a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/677999#M30536</link>
      <description>&lt;P&gt;Yes, if you have a &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.DropboxClient.html" target="_blank" rel="noopener nofollow noreferrer"&gt;DropboxClient&lt;/A&gt; you can call &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.Sharing.Routes.SharingUserRoutes.html#Dropbox_Api_Sharing_Routes_SharingUserRoutes_ListSharedLinksAsync_System_String_System_String_System_Nullable_System_Boolean__" target="_blank" rel="noopener nofollow noreferrer"&gt;ListSharedLinksAsync&lt;/A&gt; to list the shared links for that file for only that user. If you only need to list all of the shared links for that file for that particular user, that would work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to be able to list all shared links for a file across all members of the team though, you would need to use the team scopes and start with the &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.DropboxTeamClient.html" target="_blank" rel="noopener nofollow noreferrer"&gt;DropboxTeamClient&lt;/A&gt;, as that's how you would get access to all team member accounts, and call for each member. In that case, you don't need to have each member authorize the app themself though, as the single authorization from a team admin would grant access to the entire team.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 17:47:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/677999#M30536</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-04-19T17:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get all shared links for a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/678005#M30537</link>
      <description>&lt;P&gt;Yes, I'm trying to list all shared links for a file across all members of the team.&amp;nbsp; I guess the part I'm stuck on then is how to get the DropboxTeamClient for a non-Admin user.&amp;nbsp; What oauth2accessToken would I use to create a new&amp;nbsp;DropboxTeamClient?&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 17:58:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/678005#M30537</guid>
      <dc:creator>icefishandrew</dc:creator>
      <dc:date>2023-04-19T17:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get all shared links for a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/678009#M30538</link>
      <description>&lt;P&gt;You cannot get a DropboxTeamClient based on a non-admin's authorization. To get a DropboxTeamClient, you would need to use team scopes and have an admin authorize the connection. Since using team scopes means the connection would be able to access the entire team and perform team-level operations, only a team admin is able to perform that authorization.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using team scopes and having a team admin authorize the app, the resulting access token is connected to the team itself and can be used to get a DropboxTeamClient. If you need to operate on all team member accounts (whether the members are admins or not) without having each member individually authorize the app, that would be the right process to follow. That would only need to be authorized by an admin once.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 18:10:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/678009#M30538</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-04-19T18:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get all shared links for a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/678025#M30541</link>
      <description>&lt;P&gt;The app is using team scopes, and has been authorized by an admin (me).&amp;nbsp; Everything works fine on my computer using my Dropbox account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How does a non-admin user, on a different computer, get access to the resulting team connected token?&amp;nbsp; Do you have a code example of how the non-admin user would create a new DropboxTeamClient, using the token I created as an admin?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to be able to have a non-admin user get all of the members of the team, and check the shared links for each member.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 18:35:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/678025#M30541</guid>
      <dc:creator>icefishandrew</dc:creator>
      <dc:date>2023-04-19T18:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get all shared links for a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/678032#M30544</link>
      <description>&lt;P&gt;An access token is just a string, so you could technically transmit it using whatever communication mechanism you wish. If you give the access token string, which was created by authorization from an admin, to a non-admin user, they could then technically run the same code to make a DropboxTeamClient, list groups, list members, operate as members, and list shared links.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That wouldn't be recommended though, as a matter of security, as a team-linked access token like that enables access that a non-admin doesn't have.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 18:42:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/678032#M30544</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-04-19T18:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get all shared links for a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/678035#M30545</link>
      <description>&lt;P&gt;OK, so it sounds like what I'm trying to do isn't really recommended.&amp;nbsp; I'll try to approach this problem a different way.&amp;nbsp; Thank you for all your help.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 18:48:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-all-shared-links-for-a-file/m-p/678035#M30545</guid>
      <dc:creator>icefishandrew</dc:creator>
      <dc:date>2023-04-19T18:48:02Z</dc:date>
    </item>
  </channel>
</rss>

