Security Classification on a folder
AnsweredHello Box Community,
When I upload a file, I set the classification using the following code. But I have make an API call for every file which slows down my upload speeds. I was told by box support that I can use Metadata Cascade Policy to apply security classification. Then I had another case open with support, then they told me that the classification is per file basis. Now my question is can this be done at a folder level and recursively apply classification to all the files ? If Yes, anyone can post how ? Because I cannot find any documentation.
classification_metadata = {
'Box__Security__Classification__Key': 'MySecretClassification',
}
template_key = 'securityClassification-6VMVochwUWo'
applied_metadata = client.as_user(user).file(file_id).metadata('enterprise', template_key).create(classification_metadata)
-
Hi , yes cascade policies are a thing. Did you look at https://developer.box.com/reference#create-metadata-cascade-policy ?
Please sign in to leave a comment.
Comments
1 comment