oracle / oracle/oci-cli

Cannot supply `attribute-sets` parameter for `identity-domains groups search`

Open
#755 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

This command succeeds

oci identity-domains groups search \
--endpoint "$DOMAIN_URL" \
--filter "displayName eq \"$GROUP_NAME\"" \
--schemas '["urn:ietf:params:scim:api:messages:2.0:SearchRequest"]'

…but this command fails

oci identity-domains groups search \
--endpoint "$DOMAIN_URL" \
--filter "displayName eq \"$GROUP_NAME\"" \
--schemas '["urn:ietf:params:scim:api:messages:2.0:SearchRequest"]' \
--attribute-sets 'all'

Parameter 'attribute_sets' must be in JSON format.

Try again with "json format":

oci identity-domains groups search \
--endpoint "$DOMAIN_URL" \
--filter "displayName eq \"$GROUP_NAME\"" \
--schemas '["urn:ietf:params:scim:api:messages:2.0:SearchRequest"]' \
--attribute-sets '["all"]'

Error: Invalid value for '--attribute-sets': invalid choice: ["all"]. (choose from all, always, never, request, default)

Meanwhile the same syntax works fine with list (vs. search). This succeeds:

oci identity-domains groups search \
--endpoint "$DOMAIN_URL"

…and so does this:

oci identity-domains groups search \
--endpoint "$DOMAIN_URL" \
--attribute-sets 'all'

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 with the oci identity-domains groups search command and compare its --attribute-sets handling with the working groups list syntax shown in the report. Done means search accepts scalar values such as all without requiring JSON or rejecting the valid choices.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.