Access files and folder with the API in Network folder

  • 2
  • Question
  • Updated 2 days ago
Hello,

I am user Sharefile API v3 and we have a problem to access files from network.
I connect the API with secret / ID and username + password.
All is working with the shared files with
/sf/v3/Items(ID_folder)

but my issue is with the folder in the network.

I tried this way :

/sf/v3/ConnectorGroups(1)/Children
then get the ID of the folder I want to do the same as /Items(ID). But there is a AD user and I can't go inside...

With the webinterface, I can connect to sharefile, and when I go to the network part, I can enter login / password of windows user BUT
HOW CAN I DO it with the API?

Do there is a way to access inside with the API?

Thanks!

Photo of Julien Proxi

Julien Proxi

  • 2 Posts
  • 0 Reply Likes

Posted 2 weeks ago

  • 2
Photo of Karthik Sasidharan

Karthik Sasidharan

  • 1 Post
  • 0 Reply Likes
You can do it using the API in the following way,

The call to /sf/v3/ConnectorGroup(1)/Children would give a response of with the url of the network share. The url will be of the form sf/v3/Item(ID). Note: the ID would begin with "for"

You will have to make a GET call to that url and expand the Redirection object.
sf/v3/Item(ID)?$select=Redirection/*&$expand=Redirection.

This call would return a Redirection response with a uri that you can use to access the network share.

You should pass the Authorization header while making calls to the uri.

Header: Authorization Basic "base64 encode username:password"





Photo of Julien Proxi

Julien Proxi

  • 2 Posts
  • 0 Reply Likes
Ok thank you, we changed our plan to sync the files in the shared folder but it looks to work.