Re: [scim] Attributes Request Parameter and Sub-Attributes

Shelley <randomshelley@gmail.com> Sat, 12 September 2020 00:49 UTC

Return-Path: <randomshelley@gmail.com>
X-Original-To: scim@ietfa.amsl.com
Delivered-To: scim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E50633A0965 for <scim@ietfa.amsl.com>; Fri, 11 Sep 2020 17:49:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ikS366XgaZqP for <scim@ietfa.amsl.com>; Fri, 11 Sep 2020 17:48:59 -0700 (PDT)
Received: from mail-ua1-x92e.google.com (mail-ua1-x92e.google.com [IPv6:2607:f8b0:4864:20::92e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0FCEC3A0963 for <scim@ietf.org>; Fri, 11 Sep 2020 17:48:59 -0700 (PDT)
Received: by mail-ua1-x92e.google.com with SMTP id l1so3667114uai.3 for <scim@ietf.org>; Fri, 11 Sep 2020 17:48:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=x10t/qapSuVh5N6gF6LvO7WicSVhbtDPDaTi8fFIYaE=; b=gCtt6EGqQ08GBv0JvBR36Nf8YjQnpgXEVwlqw7Ekhk/XnHpamOF6an7PAMUCFvyLRq 4wcm34klNThga71y4Kb+Btgczl+MeOOMuxpqQ24AMNrvWPBADgpkBguRfGF9xMkiQMnX 9RuscLZOwf1QD6+XocUnT4tSGL8uxOVd9c/WFNVGf4dwfcdLy5zWhc6AAoVvgKzYt5zP q2rU7KsG1tOsqQINMoRf3yvssUDNnvoUbAZi9F3JkDAQCAhrj9Px5J9swYQLEz7vtDNG U7EAhVm2cYzaUGlvg2PqN+0BYzYmhyluZpmHvOpl1GsC+kWqyw8gxY+y6OgIANHQpodE 3fWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=x10t/qapSuVh5N6gF6LvO7WicSVhbtDPDaTi8fFIYaE=; b=X8/cBHdhX1rrCpja27LPxBR1A/pniIPuK7ekt/DOSNQeRuz3RruAXP5etzdQulWSj/ BdXOT2a0u4denji1W+zv0X0csp0VWUnxWsAKNeRtdJDJR81M0N2zU3oi8Ypo4ytwOLEw uWWufUoQ7FshWUoN/yjtrpHogMJLppEyymDxavSCmK+SxN77JS6Mui9HY2gmlZW8v2XS qOU8N4zIaa+EnyerKjUkpiJvZGrPpwaFxx5XEmEy9R5s5jSTP18yNLWZKlkVlMi+NZMy 4tmF9gN+QPWWBXnnLmrLQipTI8DoVJN57DleIXmzB5Fh37Hkboy2NptglIW9Yec7niV6 915Q==
X-Gm-Message-State: AOAM533+opDVol/rCB4FDgwLCvznOBjlvDgVCjPkh4Yw2n6qGfY/sHF/ 62qwqrQHneyYnAdXrOp8GJzXB+sXYIvzax2TacGOOcrQykW1qA==
X-Google-Smtp-Source: ABdhPJzwKk57WC4hRmInIf0sKmOSGVkJ1yWdbhnvW3d3Ig1ATnGqnVKgTtIQvGJX6UhrjNXZ28cnNIt/we9g4qWKC08=
X-Received: by 2002:ab0:4e25:: with SMTP id g37mr2594406uah.106.1599871738089; Fri, 11 Sep 2020 17:48:58 -0700 (PDT)
MIME-Version: 1.0
References: <CAGUsYPxeyMYqMuZcfhvdE7Sdnf3F2iFPVYYtrXAW06ZT2JTt_A@mail.gmail.com> <7F91477D-9927-4CAD-9FD0-FB274BB4F2F7@independentid.com>
In-Reply-To: <7F91477D-9927-4CAD-9FD0-FB274BB4F2F7@independentid.com>
From: Shelley <randomshelley@gmail.com>
Date: Fri, 11 Sep 2020 19:48:47 -0500
Message-ID: <CAGUsYPwZi1_ZiX=OjJYD_pQaBM9ytWdCg5ijsF5btRDZbEQfkw@mail.gmail.com>
To: Phillip Hunt <phil.hunt@independentid.com>, scim@ietf.org
Content-Type: multipart/alternative; boundary="000000000000a2941f05af132a87"
Archived-At: <https://mailarchive.ietf.org/arch/msg/scim/xXxTq3xmg81Qc8ujl0zuxw9xTvY>
Subject: Re: [scim] Attributes Request Parameter and Sub-Attributes
X-BeenThere: scim@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Simple Cloud Identity Management BOF <scim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/scim>, <mailto:scim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/scim/>
List-Post: <mailto:scim@ietf.org>
List-Help: <mailto:scim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/scim>, <mailto:scim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 12 Sep 2020 00:49:01 -0000

Can you clarify what part of the RFCs that comes from? The behavior you
describe seems reasonable, but by a strict reading of the returned
characteristics and attributes/excludedAttributes request parameters, I'm
not seeing any special treatment for sub-attributes.

On Fri, Sep 11, 2020 at 7:35 PM Phillip Hunt <phil.hunt@independentid.com>
wrote:

> My understanding/recollection is
> if one requests attributes=emails.type, you would expect only the type
> sub-attribute to be returned.
>
> If one says attributes=emails, then the default sub attributes are
> returned.
>
> Phil
>
> On Sep 11, 2020, at 7:49 AM, Shelley <randomshelley@gmail.com> wrote:
>
> 
> I just wanted to get some clarification regarding the "attributes" request
> parameter when specifying sub-attributes.
>
> When a consumer requests a default-scoped sub-attribute using the
> "attributes" parameter but does *not* specify the corresponding
> default-scoped parent attribute, or vise-versa (such that they specify the
> attribute, but not the desired sub-attributes), I'm assuming the
> sub-attribute should *NOT* be returned?
>
> For instance, given the following attribute, sub-attributes, and
> "returned" characteristics (other characteristics omitted for brevity):
>
> {
>     "name": "emails",
>     "returned": "default"
>     "type": "complex",
>     "multiValued": true,
>     "subAttributes": [
>         {
>             "name": "primary",
>             "returned": "default",
>             ...
>         },
>         {
>             "name": "type",
>             "returned": "default",
>             ...
>         },
>         {
>             "name": "value",
>             "returned": "default",
>             ...
>         }
>     ],
>     ...
> }
>
> If a caller requests just the "emails.value" attribute, but does not
> specify "emails" in the attribute list, the "emails.value" will *not *be
> returned?
>
> GET /Users/2819c223-7f76-453a-919d-413861904646?attributes=emails.value
> {
>   "id": "2819c223-7f76-453a-919d-413861904646"
> }
>
> Likewise, if a caller requests just the "emails" attribute, but does not
> specify any sub-attributes in the attributes list, the sub-attributes will
> not be returned?
>
> GET /Users/2819c223-7f76-453a-919d-413861904646?attributes=emails.value
> {
>   "id": "2819c223-7f76-453a-919d-413861904646",
>   "emails": [{},{}]
> }
>
> Instead, based on my interpretation of the RFC, it seems that the caller
> must specify *both* the "emails" attribute and the "emails.value"
> sub-attribute in order to return the sub-attributes?
>
> GET
> /Users/2819c223-7f76-453a-919d-413861904646?attributes=emails,emails.value
> {
>   "id": "2819c223-7f76-453a-919d-413861904646",
>   "emails": [
>     {
>       "value": "bjensen@example.com"
>     },
>     {
>       "value": "babs@jensen.org"
>     }
>   ]
> }
>
> Please let me know if this understanding is correct, or if I'm overlooking
> some kind of special treatment defined in the spec that includes transitive
> retrieval for parent/sub-attributes. Thank you!
> _______________________________________________
> scim mailing list
> scim@ietf.org
> https://www.ietf.org/mailman/listinfo/scim
>
>