Re: [scim] Question about PATCH on Group

Samuel Erdtman <samuel@erdtman.se> Thu, 21 March 2019 21:14 UTC

Return-Path: <samuel@erdtman.se>
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 74B3A124BF6 for <scim@ietfa.amsl.com>; Thu, 21 Mar 2019 14:14:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=erdtman-se.20150623.gappssmtp.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 EtdPwY-MB1xv for <scim@ietfa.amsl.com>; Thu, 21 Mar 2019 14:14:02 -0700 (PDT)
Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (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 E4A611228B7 for <scim@ietf.org>; Thu, 21 Mar 2019 14:14:01 -0700 (PDT)
Received: by mail-pf1-x42b.google.com with SMTP id v21so5086809pfm.12 for <scim@ietf.org>; Thu, 21 Mar 2019 14:14:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=erdtman-se.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=nWTJ2t+MjsgjLvB50ZA+w56OXNjNVd08RNazh6dbUWk=; b=e3LpwO4eB/Z9LK+wjTfqB99jiUiBlUUs1ImLQcbxFeF2qnMBBHBMv247cjCU1LhYo5 WxkYbqCQwVkLQFtYGMEBlE+RHldxwAX3OHDHox+4Pgi/34BTvm5E6hpAtH5FpB7XhxCZ /u5cvzmrEcIrK6iqDPMGQcDXeGZ659lSe7QON08R4uhrVdnrqPQnAHGnBfGAp0Ut+gR3 VnrO2x6/KFglq3aj1OzWLE/CjA6Jj4d95ZAexf0Bxve63VCxAA6KPKluBs4d56qbPPcY wglyfiK33zaKHoWTyRmLZEGx40BCcFOQmp5BV6P2n8tsz8CdFVRU70wTHJP5kVQb7XJH LOew==
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=nWTJ2t+MjsgjLvB50ZA+w56OXNjNVd08RNazh6dbUWk=; b=YFuFxZjTHtqtLn+Za+Kijj6eCszzrrFhTxswuPmza8UWJ04w5BLhOu++RPJN6yZkIl pehzX/YXYx7++S03p/xMSNf2Gjr+j8YPlIhfJvclQvmWW/CoCopXiIMKUXm8b0VEwNzi 9uzGodrE7zhxLIb0VlUHAUifrW0slt+Q36VTeTTnEYvEmN7081YCkz1Hio1w3VQGHlVa Tapn7ct01tUFKR674WNtUJ1xs3YVpBr5L15eu4STl2xsPbhNzdZokiI/6XJhvjvP5KJ6 d9vCCSB0D79E9xW5AYwkc9MXl7MsAaCWskqkBrCVQa0x+0qjmuXB1F7eYffVQm/2AqJh wSlQ==
X-Gm-Message-State: APjAAAUss77FihyYBJRAEGDsCadlZ6G8QflG5mQYS3JvZ4VEII8fAoka IonHRYPr0iApd9W+f04heSprN3YasPz3amd5ga5Uew==
X-Google-Smtp-Source: APXvYqxw6hjAQ0ksBJNEqdvANPRuanHuAI3nFGpnf2Q6u7Pf7LDqyQ1g/BNsKZWq3sm+RcjmUsZ8QXu7m8ARO07aNyw=
X-Received: by 2002:a63:5541:: with SMTP id f1mr5422866pgm.38.1553202841168; Thu, 21 Mar 2019 14:14:01 -0700 (PDT)
MIME-Version: 1.0
References: <CAKC-s8g0cBc+PDAACB-AU0kVSb5McF9zS4Fmuvw3nnKaTR+Txg@mail.gmail.com>
In-Reply-To: <CAKC-s8g0cBc+PDAACB-AU0kVSb5McF9zS4Fmuvw3nnKaTR+Txg@mail.gmail.com>
From: Samuel Erdtman <samuel@erdtman.se>
Date: Thu, 21 Mar 2019 22:13:50 +0100
Message-ID: <CAF2hCba+8TVHoLcRYOx7H2F=1CE73_Ddp-Hje13hsezo+=9Z+A@mail.gmail.com>
To: Ernie Kovak <ernie.kovak@gmail.com>, scim@ietf.org
Content-Type: multipart/alternative; boundary="0000000000009cc6200584a137c4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/scim/lqbCDFPsYpCcmwH-JSYLN0ZvIO0>
Subject: Re: [scim] Question about PATCH on Group
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: Thu, 21 Mar 2019 21:14:04 -0000

+scim@ietf.org <scim@ietf.org>

On Sat, Mar 9, 2019 at 5:26 PM Ernie Kovak <ernie.kovak@gmail.com> wrote:

> Hello -
>
> I'm implementing PATCH update for SCIM 2.0 Group, and I'm confused on data
> structures. The protocol spec <https://tools.ietf.org/html/rfc7644> has
> several examples of PATCH /Groups/{id}, such as on p. 41, which shows a
> member being added which looks like this:
>
> {
>   "display": "Babs Jensen",
>   "$ref": "https://example.com/v2/Users/2819c223...413861904646",
>   "value": "2819c223-7f76-453a-919d-413861904646"
> }
>
> The presence of "display" subattribute marks it as a User's "groups"
> membership attribute, see p. 62-63 of the core schema spec
> <https://tools.ietf.org/html/rfc7643>. But I'm patching a Group, not a
> User, so shouldn't the structure be that of Group's "members" attribute,
> see p. 68-69 of core schema spec??
>
> {
>   "type": "User",
>   "$ref": "https://example.com/v2/Users/2819c223...413861904646",
>   "value": "2819c223-7f76-453a-919d-413861904646"
> }
>
> Is that correct? Should I use the first json structure to update my Group
> membership?
>
> Thank you -
> Ernie
>
>