My Oracle Support Banner

OCI Federated User Executing OCI CLI Command Returns "NotAuthorizedOrNotFound" And "Authorization failed or requested resource not found" (Doc ID 2854127.1)

Last updated on MARCH 07, 2022

Applies to:

Identity Cloud Service (IDCS) - Version N/A to N/A
Information in this document applies to any platform.

Symptoms

IDCS Federated user in OCI executes the following OCI CLI command (the example below is to list db system in a given compartment):

# oci db system list --compartment-id <compartment OCID>

and receives the following error

ServiceError:
{
  "code": "NotAuthorizedOrNotFound",
  "message": "Authorization failed or requested resource not found.. Please visit https://docs.oracle.com/en-us/iaas/Content/API/References/apierrors.htm to learn more about this error code",
  "opc-request-id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ",
  "status": 404
}

All group policies were verified and are correct.

Local user executing the same OCI CLI doesn't have the problem.

The group mapping in OCI was removed and recreated.

 

Changes

The IDCS group that was mapped to OCI was renamed.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.