Re: [scim] User resource's lastModified attribute behavior on Group resource update

Anuradha Karunarathna <anuradha199528@gmail.com> Mon, 07 December 2020 06:28 UTC

Return-Path: <anuradha199528@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 56DCF3A109A for <scim@ietfa.amsl.com>; Sun, 6 Dec 2020 22:28:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.847
X-Spam-Level:
X-Spam-Status: No, score=-1.847 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_ENVFROM_END_DIGIT=0.25, 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 w-B8xshRpMYi for <scim@ietfa.amsl.com>; Sun, 6 Dec 2020 22:28:28 -0800 (PST)
Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (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 897E03A1093 for <scim@ietf.org>; Sun, 6 Dec 2020 22:28:28 -0800 (PST)
Received: by mail-io1-xd2c.google.com with SMTP id p187so12298054iod.4 for <scim@ietf.org>; Sun, 06 Dec 2020 22:28:28 -0800 (PST)
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 :cc; bh=ix4k8LjzvaeYTVuHGWT1SxZOI6c/gYsaiOX0C5Vblcc=; b=T01tDP5A7sjAXm4/fJQn9RHm9elF9zN5QegNyWY4pSuZBL4B9OhdNifYTTBL8UZXtc ek8V+ufPK1nsWZFy+HU6ilft8rIKtwlD5aUU60KJMw4EkEjUzwlyXY3gSENYJn/nS4uI NcsyG8EVDLfvmXheB4JMdTORnUaEqhemY+BPae5POx4EaGwUGXKmPXx5BhLnkkjca5eY Vp67dSrj9P7oAuF+Rm0HDTvGk6w9XmCdtWD83YJfUzR1XJyNf6Awdgr+8nxUZ8BmWIXv Hu3k5/cY2BzQzdSPtR9IJV6xtbxSmLNnoSENMIe2uU7nWMvr+AraTxup4us26W20Ou8E 1v4g==
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:cc; bh=ix4k8LjzvaeYTVuHGWT1SxZOI6c/gYsaiOX0C5Vblcc=; b=R0crfdhR6i4LiKEKEpcmHTQ4ys1Ld/sG6gC4tcZNH/lB8XzwJIYFPi2+VGwMhmm04K tcMlmDSifZRfN23Ls4gOZqWHikEhcBi86G4IXyjRpeEVwCm4rL8BTU7C9i9EBYO2Vvvb PmvC7cnLBmwjHJskQfS3MeeVVwcO+fm/wW12daMG3hH2U3jYY7eFf0TUHvl2iO/xwoGz jRtsqD3DoLcvTx2WtXoigAw2lSuGCqeIdCTZ4XcNdPnHOLz5su62doZ+UE06uxwLSw/c w6rgQuns76EtyzVn7mA3MgzGQsaDLPcbuP/56qaByPAE9OydZt9AnlrU2XOjsIpzbWzJ BKDg==
X-Gm-Message-State: AOAM531Iit5QiHNMGJ1w8N23PQH5VkIdQbAJiX4K6e8C8s9CCW69varh 5hc9ix2+TD/dfIYuf/BEaDQ0T/gbPeL0qA1BCSY0xj19HEI=
X-Google-Smtp-Source: ABdhPJxpOPcbXhH2eTiMlpJlk14Ck3DGxgR6TL6crZS61nF/XviVoeco8mIpzX0IR+YOpoz8tWgy3hPnNFLUqQSoIzI=
X-Received: by 2002:a05:6602:2d49:: with SMTP id d9mr18700528iow.109.1607322507846; Sun, 06 Dec 2020 22:28:27 -0800 (PST)
MIME-Version: 1.0
References: <CA+OkT=9R1JW1EV8z9iP-2J1-+7Lv9YaKW070m2x3ZTqXaNNskg@mail.gmail.com> <D2768428-20B9-4572-9F8C-0D53550D60A2@independentid.com>
In-Reply-To: <D2768428-20B9-4572-9F8C-0D53550D60A2@independentid.com>
From: Anuradha Karunarathna <anuradha199528@gmail.com>
Date: Mon, 07 Dec 2020 11:58:16 +0530
Message-ID: <CA+OkT=9Ur+XKht5VndX+r347g9V1-e1y8-syiqwYSGexBpLCuA@mail.gmail.com>
To: Phillip Hunt <phil.hunt@independentid.com>
Cc: scim@ietf.org
Content-Type: multipart/alternative; boundary="0000000000001ea97b05b5d9ef2e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/scim/wcIVUafvj1E48Tzv1d73rr8AtSs>
Subject: Re: [scim] User resource's lastModified attribute behavior on Group resource update
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: Mon, 07 Dec 2020 06:28:30 -0000

Hi Phillip,

Thank you for the clarification.

On Sun, Dec 6, 2020 at 9:26 PM Phillip Hunt <phil.hunt@independentid.com>
wrote:

> I believe the spec is silent on this matter.
>
> The issue is that indirect or dynamic (eg groups attribute) memberships
> are by their nature subject to change until calculated at query time.
>
> Thus I would not necessarily count on implementations updating
> lastModified for dynamic/calculated values.
>
> Phil
>
> On Dec 5, 2020, at 11:59 PM, Anuradha Karunarathna <
> anuradha199528@gmail.com> wrote:
>
> 
> Hi all,
>
> According to the lastModified attribute definition in RFC 7643 section 3.1
> [1 <https://tools.ietf.org/html/rfc7643#section-3.1>], a particular
> resource's lastModified attribute should be updated if the resource is
> updated. According to the definition, it is obvious to have an update on a
> user's lastModified attribute based on PATCH operation on
> /Users/{user-id} or PUT operation on  /Users/{user-id}.
> Also, I feel that the lastModified attribute of user resource should be
> updated even the user updates indirectly.
>
> eg: Adding a member to a group should cause to update the relevant group
> and user resources' lastModified attribute.
>
> PATCH /Groups/acbf3ae7-8463-...-9b4da3f908ce
>    Host: example.com
>    Accept: application/scim+json
>    Content-Type: application/scim+json
>    Authorization: Bearer h480djs93hd8
>    If-Match: W/"a330bc54f0671c9"
>
>    { "schemas":
>       ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
>      "Operations":[
>        {
>         "op":"add",
>         "path":"members",
>         "value":[
>          {
>            "display": "Babs Jensen",
>            "$ref":
>    "https://example.com/v2/Users/2819c223...413861904646",
>            "value": "2819c223-7f76-453a-919d-413861904646"
>          }
>         ]
>        }
>      ]
>    }
>
>
> If we take the above request as a succeded PATCH request, lastModified attribute of
>
>    - the group identified by id acbf3ae7-8463-...-9b4da3f908ce and,
>    - the user Babs Jensen (SCIM id- 2819c223-7f76-453a-919d-413861904646)
>
> should be updated.
>
>
> I want to clarify whether my understanding is correct?
>
> [1] https://tools.ietf.org/html/rfc7643#section-3.1
>
> Thanks,
> Anuradha
> _______________________________________________
> scim mailing list
> scim@ietf.org
> https://www.ietf.org/mailman/listinfo/scim
>
>