The Search-Assets command is giving the error below:
Search-Assets : You are not authorized to perform this operation. Access is denied.
At line:7 char:11
+ $Assets = Search-Assets -AssetType "UNIX Machine" -Filter {("displayn ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Search-Assets], Exception
+ FullyQualifiedErrorId : SearchAsset,Symantec.CSM.PS.Assets.SearchAssets
Release: CCS 12.6.x
This is the result of the user running the script not having a role in CCS.
Verify that the user running the script has been added to the correct CCS role with the required tasks.
Also verify that the user has been added the correct permissions in Permission Management.
CCS PowerShell script documentation: