ShareFile .net sdk - How to get shared folder by its Id with client users credentials

  • 1
  • Question
  • Updated 9 months ago
I'm currently working on the ShareFile api using c#. The sdk in particular is the ShareFile .net sdk posted on github here: https://github.com/citrix/ShareFile-NET 

I am not able to figure out  How to get shared folder by its Id/name/guid with client users credentials 
Photo of Mosin

Mosin

  • 10 Posts
  • 0 Reply Likes

Posted 9 months ago

  • 1
Photo of Ryan Jensen

Ryan Jensen, Official Rep

  • 13 Posts
  • 2 Reply Likes
Getting a shared folder is the same for client or employee credentials. Does the client user have access to the shared folder you are trying to access?
Photo of Alan Chan

Alan Chan, Employee

  • 6 Posts
  • 2 Reply Likes
Hi Mosin

If you already know the id of the folder you can try the following:

var query = SFClient.Items.Get(SFClient.Items.GetEntityUriFromId("folderid")).Execute();

Replace "folderid" with the actual folder id.