Powershell Cmdlets Search-Assets : You are not authorized to perform this operation. Access is denied.
search cancel

Powershell Cmdlets Search-Assets : You are not authorized to perform this operation. Access is denied.

book

Article ID: 246571

calendar_today

Updated On:

Products

Control Compliance Suite Standards Server

Issue/Introduction

The Search-Assets command, is giving the below error:

 

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

 

 

Environment

Release : 12.x

 

Cause

This is the result of the user running the script not having a role in CCS.

Resolution

Verify that the user running the script has been added to the correct role with the required tasks.

That the user has been add the correct permissions in Permission Management.

Additional Information

https://techdocs.broadcom.com/us/en/symantec-security-software/information-security/control-compliance-suite/12-5-2/Appendix-Materials/powershell-scripts-v123332016-d8e203420.html