oci iam group create --compartment-id <other than tenancy's default> returns "Tenant id is not equal to compartment id"
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 669
- Forks
- 236
- Avg merge
- 1m
- Merged PRs (30d)
- 4
Description
Basically my question is ... How to create a group (and a user too) in an identity domain distinct than tenancy's default (root) using the oci-cli ... as you can do using the Web Console?
It seems to be there's no way to specify the --domain-id when creating a group in a domain different than tenancy's default bcz in the command oci iam group create the --compartment-id should be replaced --domain-id (or something like). What I think it does now based on the error message is that --compartment-id must be the same as the tenancy entry in the $HOME/.oci/config file. In fact in the --help command the --compartment-id says "The OCID of the tenancy containing the group. If not provided, this parameter will use the tenancy’s OCID (root compartment’s OCID) from the config file." but I cannot provide other than the tenancy entry in the $HOME/.oci/config file so only lets me create users and groups in the tenancy's default compartment but not in others.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the oci iam group create and related user-create command definitions, then review their --help text and the identity-domain behavior described in the issue. Done means the CLI either supports creating groups and users in a non-default identity domain or clearly documents the supported invocation and limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authorization, cli, cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100