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.


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

  "code": "NotAuthorizedOrNotFound",
  "message": "Authorization failed or requested resource not found.. Please visit to learn more about this error code",
  "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.



The IDCS group that was mapped to OCI was renamed.


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

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