cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Get Shared link of all the team member using admin account

Explorer | Level 3

Hi, I am trying to access shared link of all the team member in a Dropbox using .Net SDK. I am able to access current user link. How can I get access to other member shared link. Please Help. Thanks, Sukanta

1 Accepted Solution

Accepted Solutions
Highlighted

Re: Get Shared link of all the team member using admin account

Dropboxer
Dropboxer

If you want to access the accounts of any/all team members of the connected team(s), you'll need a Dropbox Business API app with the "team member file access" permission.

With that, you can use the "member file access" feature to access the account of any team member on the connected team. This is available in the .NET SDK in particular via DropboxTeamClient.AsMember

Once you get the resulting DropboxClient for the team member, you can list their existing shared links using ListSharedLinksAsync

If you want to list the shared links for every member, you'll need to repeat the above for each member.

View solution in original post

5 Replies 5
Highlighted

Re: Get Shared link of all the team member using admin account

Dropboxer
Dropboxer

If you want to access the accounts of any/all team members of the connected team(s), you'll need a Dropbox Business API app with the "team member file access" permission.

With that, you can use the "member file access" feature to access the account of any team member on the connected team. This is available in the .NET SDK in particular via DropboxTeamClient.AsMember

Once you get the resulting DropboxClient for the team member, you can list their existing shared links using ListSharedLinksAsync

If you want to list the shared links for every member, you'll need to repeat the above for each member.

View solution in original post

Highlighted

Re: Get Shared link of all the team member using admin account

Explorer | Level 3

Awesome.

Thanks a lot Greg.  

Yes I am able to get all the team member shared link using DropboxTeamClient.AsMember.

Highlighted

Re: Get Shared link of all the team member using admin account

Explorer | Level 3

Why I am getting bellow error for few member when trying to get shared links using Business API(not for all user)

Code :

var dropboxclient_Member= dropboxclient.AsMember(TeamMemberId);

var listSharedLinksResult11 = await dropboxclient_Member.Sharing.ListSharedLinksAsync(); // getting error in this line

ErrorError

StackTrace

   at Dropbox.Api.DropboxRequestHandler.<RequestJsonString>d__17.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Dropbox.Api.DropboxRequestHandler.<RequestJsonStringWithRetry>d__15.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Dropbox.Api.DropboxRequestHandler.<Dropbox-Api-Stone-ITransport-SendRpcRequestAsync>d__12`3.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

   at Dropbox_Inventory.Program.<ListSharedLinks>d__4.MoveNext() in D:\Sukanta\DropBox\Code\Dropbox_Inventory\Dropbox_Inventory\Program.cs:line 81

 

Please Help.

Thanks.

Highlighted

Re: Get Shared link of all the team member using admin account

Explorer | Level 3

Hi Greg,

When I am trying to get shared links of team member using  Dropbox Business API app with the "team member file access" permission"  , I am getting bellow error for some of the members. (not for all member)

ErrorError

StackTrace

   at Dropbox.Api.DropboxRequestHandler.<RequestJsonString>d__17.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Dropbox.Api.DropboxRequestHandler.<RequestJsonStringWithRetry>d__15.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Dropbox.Api.DropboxRequestHandler.<Dropbox-Api-Stone-ITransport-SendRpcRequestAsync>d__12`3.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

   at Dropbox_Inventory.Program.<ListSharedLinks>d__4.MoveNext() in D:\Sukanta\DropBox\Code\Dropbox_Inventory\Dropbox_Inventory\Program.cs:line 81

 

Code:

var DropboxClient_Member = dropboxClient.AsMember(TeamMemberId);

var listSharedLinksResult11 = await DropboxClient_Member.Sharing.ListSharedLinksAsync(); //getting error in this line

 

 

Please help.

Thanks,

Sukanta Saha

Highlighted

Re: Get Shared link of all the team member using admin account

Dropboxer
Dropboxer

That 500 error code indicates an internal server error. We'll have to look into that on our side. Can you print out a few of those DropboxException objects as strings and share them? Those should each contain a request ID that would help us look this up on our side. Thanks in advance! 

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?