Skip to Main Content

Identity & Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

In an OCI DRCC environement with identity domains enabled, how do I list members of an OCI group using oci cli?

TrifoFeb 13 2026

I am working in az OCI DRCC environement, with identity domains enabled. I am trying to find a way to list members of an OCI group.

Without identity domains it is rather straightforward, as
`oci iam group list-users --group-id ocid1.....eeiie `
and I get a JSON list output with the users data.

But with identity domains on, it is different, I tried to use `identity-domains` subcommand:
```
TENANCY=$(oci iam compartment list --query ' data[0].id ' --raw-output)
ENDPOINT=$( oci iam domain list --compartment-id $TENANCY --query 'data[0].url' --raw-output )
oci identity-domains group get --endpoint $ENDPOINT --group-id ocid1.group....xxtsa --query 'data.members'
```

My problem is that `members` field appears to be empty for all my groups. The users and groups are local, not from an external identity source.

Comments
Post Details
Added on Feb 13 2026
0 comments
30 views