oracle / oracle/oci-cli

oci iam user get always returns : "inactive-status": null,

Open
#1,017 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

IAM
Dominant language
Python
Stars
669
Forks
236
Avg merge
1m
Merged PRs (30d)
4

Description

Issue

inactive-status in "oci iam user get" is always null .

Expectation

The field should not return the field with a "None"-Value but with an interpretable value. (bool/int e.g.)
The value is always null, it doesn't matter if a user account is disabled or not.
Reproducable with OCI-SDK and OCI-CLI in multiple oci tenancies.

used Versions

OCI Cli Version:
3.71.4
OCI-Python SDK Version:
2.164.2

oci-cli output

(confidential info has been stripped from the output)

#>oci iam user get --user-id "<snip>" 
{
  "data": {
    "capabilities": {
      "can-use-api-keys": true,
      "can-use-auth-tokens": true,
      "can-use-console-password": true,
      "can-use-customer-secret-keys": true,
      "can-use-db-credentials": true,
      "can-use-o-auth2-client-credentials": true,
      "can-use-smtp-credentials": true
    },
    "compartment-id": "ocid1.tenancy.oc1.....",
    "db-user-name": null,
    "defined-tags": {
      "Oracle-Tags": {
        "CreatedBy": "<snip>",
        "CreatedOn": "<snip>"
      }
    },
    "description": null,
    "email": "<snip>",
    "email-verified": true,
    "external-identifier": "<snip>",
    "freeform-tags": {},
    "id": "ocid1.user.oc1..",
    "identity-provider-id": null,
    "inactive-status": null,
    "is-mfa-activated": true,
    "last-successful-login-time": "<snip>",
    "lifecycle-state": "ACTIVE",
    "name": "<snip>",
    "previous-successful-login-time": null,
    "time-created": "<snip>"
  },
  "etag": "<snip>"
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with oci iam user get --user-id using the reported OCI CLI 3.71.4 and OCI Python SDK 2.164.2 versions, comparing enabled and disabled users across the documented output. Trace how inactive-status is obtained and represented, then verify that the command returns an interpretable value rather than null for both account states.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.