Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@FAKELES-7310:~$ oci iam group list-users --compartment-id $TENANCY_OCID --group-id $(oci iam group list --compartment-id $TENANCY_OCID --name Administrators --query 'data[*]."id"' --raw-output | egrep -v -e "\[" -e "\]" | sed 's/\"//g;s/,//g') --query 'data[*].{OCID:id,Name:name}' --output table
- +--------+--------------------------------------------------+
- | Name | OCID |
- +--------+--------------------------------------------------+
- | User 1 | ocid1.user.oc1.................................. |
- | User 2 | ocid1.user.oc1.................................. |
- | User 3 | ocid1.user.oc1.................................. |
- | User 4 | ocid1.user.oc1.................................. |
- | User 5 | ocid1.user.oc1.................................. |
- | User 6 | ocid1.user.oc1.................................. |
- +--------+--------------------------------------------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement