Is /f/folderid still supported for webapplink

  • 1
  • Question
  • Updated 2 months ago
Photo of Rajitha

Rajitha

  • 6 Posts
  • 0 Reply Likes

Posted 2 months ago

  • 1
Photo of Leo

Leo, Official Rep

  • 346 Posts
  • 25 Reply Likes
Hi Rajitha,

You can still directly link to a folder that way, if that's what you're asking?  The person accessing that link would still need to log in to the account if not already authenticated, however.

-Leo
Photo of Rajitha

Rajitha

  • 6 Posts
  • 0 Reply Likes
Thanks Leo for the prompt response.

What I am trying to do is as below. Please correct me if my understanding is wrong:

We have a link in our application which redirects user to a sharefile folder. User currently has to sign in with his sharefile credentials. Which he is complaining off.

To overcome the multiple sign in, we are trying to automate this. We are authenticating the user, fetching the webapplink and replacing the webapplink with the f/<folderid> and providing that as a link to the folder to the user. 

What we are expecting here is user directly lands on the folder when he clicks on the link. But unfortunately he is asked for his credentials again. Can you please help us here?

Thanks & Regards
Rajitha
Photo of Eliezer Encarnacion

Eliezer Encarnacion, Official Rep

  • 695 Posts
  • 98 Reply Likes
Rajitha,

To create an authenticated link to a folder in Webapp, you can use the following API Endpoint: 

sf/v3/Items(id)/WebappLink
http://api.sharefile.com/rest/docs/resource.aspx?name=Items&#Create_a_one-time_use_login_Uri_for....

When clicked, a user will be redirected to an authenticated web application view of the folder. Note that the link redirects the user to a folder, but does not prevent the user from navigating through the web application and viewing other folder and options. The user will have all permissions of the authenticated API user when the link was generated, so be mindful of not using any admin credentials to generate a link intended for a client or non-admin user

Thanks,

Eli
Photo of Rajitha

Rajitha

  • 6 Posts
  • 0 Reply Likes
Perfect! Thanks Eli. This is exactly what we wanted. Sure. We will take care of the credentials.