Skip to content

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

@nyadyme

Description

@nyadyme

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>"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    IAMIssue pertains to the IAM service

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions