IBM Cloud Docs
Are you receiving a message that credentials cannot be verified when you run a command?

Are you receiving a message that credentials cannot be verified when you run a command?

When you run an IBM Cloud® Security and Compliance Center Workload Protection command, a message is returned that credentials cannot be verified along with a 401 status.

A message similar to this message is returned when you run a Workload Protection command:

{"message":"cannot verify credentials","referenceId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}

...

Status: 401, Message: {"message":"cannot verify credentials","referenceId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}

You don't have sufficient permissions to run the command.

Review the documentation on controlling access through IAM policies, ensure you have the correct policies set, and retry the command.