Anyone have tips/tricks with hiding and locking wi...
# sdf
d
Anyone have tips/tricks with hiding and locking with SDF?
n
Like general tips? Here's a few I've written down for myself: • You can not hide/lock tabs • If you only have one action (might also be if you have several actions) in a preference file it cannot be the same as the default action in the preferences for that file • A path element with a value that contains a wildcard requires an appliesTo attribute. • You cannot hide client SuiteScripts
Just a heads up though, I wrote this down a few months ago, some of it might have changed with updates..
d
Thank you. Specifically I'm looking for information on protecting my files from users seeing/viewing/downloading them from the file cabinet. It just doesn't seem like this is possible.
n
@dcrsmith if they're locked/hidden they can't be downloaded as far as I know so you should be fine, what makes you say it's not possible?
(except for client scripts like I wrote above)
d
Because everything I've tried I can still go into the file cabinet and view the files.
And with hiding, you have to make it available for bundles in order to hide it. I don't want my SuiteApp code to be available for someone else's bundle.
Have you checked this?
Are you using an InstallationPreferences folder with a hiding.xml and locking.xml file?
I've locked/hidden files successfully and can't even open them myself in the file cabinet or anywhere else in the UI
d
Yes, I'm using the installation preferences. When I lock the files, I can still preview them (which is the same as downloading them in my opinion).
n
What..
message has been deleted
Do you scripts have locks like the ones here? To the right of the names?
d
Yes. But if you "View" them that's the same as being able to download it. I can copy/paste the code for any of those files.
I don't think this is going to work as I expected.
Copy code
You can lock files and folders in a SuiteApp using SDF. A locked file or folder will be Read Only.
n
Yes but if you view them you can only see the script record right? Because in my case the script file isn't clickable it's just string/name not a link to the script as it is when unlocked
message has been deleted
like this
d
From the file cabinet you can still view the file.
n
message has been deleted
How it looks when I try to open a locked file in the file cabinet
This when I go to the scripts this way: File Cabinet -> SuiteApps -> com.company.app
d
What role are you in?
n
Administrator so full rights
But it doesn't matter locked should be locked or there would be no point in this functionality, there's a reason why they don't recommend locking in all environments because you'd never be able to retrieve your files again if you lose them from all places but the File Cabinet (i.e. locally and your git repo or whatever)
so I think you're missing something if your files aren't fully locked 🙂
My files below, do you have the same setup?
message has been deleted