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

CCS 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 Control Compliance Suite

Issue/Introduction

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

Environment

Release: CCS 12.6.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 CCS role with the required tasks.

Also verify that the user has been added the correct permissions in Permission Management.

Additional Information

CCS PowerShell script documentation:

CCS Powershell scripts