Create Share that can be printed

  • 1
  • Problem
  • Updated 8 months ago
Hello,

We are creating "ViewOnly" shares that our users can access in their web browser. From the API doc (https://api.sharefile.com/rest/docs/r...), we are setting fhe following field: share.ShareAccessRight.ShareAccessRightType = ViewOnline

This is working correctly, and when the user views the share, the download button is disabled and the print option does not print the document.

However we now have a scenario where certain types of documents should be able to be printed by the user. I'd like to see if this is possible without enabling the download button when a user is viewing a share. We want to prevent users from downloading files to minimize document sprawl (and having sensitive information in multiple places), but this one scenario unfortunately does require a paper copy of the document.

Any thoughts on how I might be able to approach this problem? Thank you!
Photo of Ross Bender

Ross Bender

  • 61 Posts
  • 10 Reply Likes

Posted 8 months ago

  • 1
Photo of Michael Berrier

Michael Berrier, Official Rep

  • 123 Posts
  • 24 Reply Likes
Ross,

It sounds like you might be interested in some of the features of ShareFile Virtual Data Room (VDR). For example, doc viewer printing supports the flow you describe where users may print a copy but not download a file:
https://support.citrix.com/article/CTX208344#DocViewerPrint

Enabling these features typically requires setting up a new account under a VDR plan. If you'd be interested in this, please contact ShareFile support.

Michael Berrier
ShareFile Engineering
Photo of Ross Bender

Ross Bender

  • 61 Posts
  • 10 Reply Likes
Thanks for the response, Michael. I'll take a look at VDR.

In the meantime, I'm trying to view the doc for the ShareAccessRight model (https://api.sharefile.com/rest/docs/resource.aspx?name=ShareFile.Api.Models.ShareAccessRight) but am getting a message that it is not found. I'm trying to see what the valid types for this data field are.

ShareAccessRight is linked from Share documentation - https://api.sharefile.com/rest/docs/resource.aspx?name=ShareFile.Api.Models.Share

Could you please provide some info on ShareAccessRight until the doc page is fixed? Thank you!
Photo of Michael Berrier

Michael Berrier, Official Rep

  • 123 Posts
  • 24 Reply Likes
Ross,

Sorry about that. I'll make sure the documentation site gets updated.

ShareAccessRight has the following form in the context of a Share:
"ShareAccessRight":{
   "DisplayText":"have full control",
   "AccessRightType":"FullControl",
   "odata.type":"ShareFile.Api.Models.ShareAccessRight",
   "Id":""
}
DisplayText is not a modifiable property and Id is empty for share access rights since it is not a directly addressable entity. As you've already discovered, the key property is AccessRightType, which has the following possible values (although we intend to introduce more soon): ViewOnline, IRM, and FullControl.

FullControl represents a typical share where a recipient can both view, download, and printĀ the files. ViewOnly is available for accounts with the view-only shares feature. IRM is available for accounts with our Information Rights Management integration enabled and necessitates viewing shared files in a special viewer that can access protected files.

More info on View-only Shares here:
https://support.citrix.com/article/CTX208601

And IRM:
https://support.citrix.com/article/CTX208760

Michael
Photo of Michael Berrier

Michael Berrier, Official Rep

  • 123 Posts
  • 24 Reply Likes
Ross,

You can also consider using one of our SDKs if available for your language of choice.
http://api.sharefile.com/rest/clients.aspx

In the .NET SDK, for example, the available values forĀ AccessRightType are represented by an enum, which could help with discovery even if the documentation is lacking.

Michael
Photo of Ross Bender

Ross Bender

  • 61 Posts
  • 10 Reply Likes
Thanks Michael, that is helpful. I didn't think to check the SDKs