Hello, I am using a powershell script to use the CLI to search for user folders, but I need it to search for an exact match. Essentially what we are doing is building users a default set of folders, and this script is meant to go through our existing users, check to see if they have the folders, and then create them if they are not there.
The folders would look like this:
-My Files
-- Proprietary Information
-- Personal Information
-- Third Party Proprietary Information
Below is the line of code for the search. $FOLDER_ID is the ID of the "My Files" folder, so the code is meant to look inside the My Files folder to see if one of those sub-folders exist:
$FOLDERRESP_TPPI = (box search "Third Party Proprietary Information" --ancestor-folder-ids $FOLDER_ID --as-user $USER_ID --type folder)
What happens is that if someone has the "Proprietary Information" folder, the search comes back with that as a response because it contained the word Information. I need the code to only return results for a complete match of "Third Party Proprietary Information". Is there a way to force a search to only return an exact match?
