IBM Cloud Docs
Why am I not authorized to make key management service API request?

Why am I not authorized to make key management service API request?

When you call the Hyper Protect Crypto Services key management service API, the system returns a 401 Unauthorized error, and you're unable to make the API request.

You call any Hyper Protect Crypto Services key management service API method. You see an error response similar to the following JSON object:

{
  "metadata":
  {
    "collectionType":"application/vnd.ibm.kms.error+json",
    "collectionTotal":1
  },
  "resources":[
    {
      "errorMsg":"Unauthorized: The user does not have access to the specified resource"
    }
  ]
}

You do not have the correct authorization to perform Hyper Protect Crypto Services actions in the specified service instance.

Verify with an administrator that you are assigned the correct platform and service access roles in the applicable service instance. For more information about roles, see Roles and permissions.