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

Anuradha Karunarathna <anuradha199528@gmail.com> Sun, 06 December 2020 07:59 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 6810A3A0E97 for <scim@ietfa.amsl.com>; Sat, 5 Dec 2020 23:59:53 -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 DpALwc1YwiJJ for <scim@ietfa.amsl.com>; Sat, 5 Dec 2020 23:59:51 -0800 (PST)
Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (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 599773A0E9E for <scim@ietf.org>; Sat, 5 Dec 2020 23:59:44 -0800 (PST)
Received: by mail-il1-x12e.google.com with SMTP id k8so9277063ilr.4 for <scim@ietf.org>; Sat, 05 Dec 2020 23:59:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=iQiJqGv3vA8ebrZupvfvopzeU6DsK6mX+uNB+BvQE/E=; b=f2Tvc/3WI6j6LtotQqBK7T5yM1+mO/KGFkKLDooontPYyX/1GUZjMKL3HZI8FrRTHS BREBEFoLLxR3Yu3A1kYu4qDcoQzAWLRDvf03wlmTcXESSJAvyOpujR3CaFjmxAkZfbmL z3vRCmqC6ICJnnr8Yq5hUOrE6VCbG0uzWxUh6sK8G04Pc60RLuVwhkO8108/A1kwdEDJ spFKNjEGLOb99jAED8Cfz0RKR+neCj1WLoI+q6QcEnODHkClMMeeC2Cyox3KNj8na0kZ U3ct5qvUJbu7LfB501/NdU1aIK8XXpNPo2R0YmMNC1G4CfrvhFugRck9ENzZ3GQu+MY8 tFlQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=iQiJqGv3vA8ebrZupvfvopzeU6DsK6mX+uNB+BvQE/E=; b=kAFsfbr90Q2NOoesWoe2jqSlfXWC20sKsGOd6SbEmnLZaCSobSf7drvD9aSrFYFqCj JeJD6AkmMgcGU/0JDXXKPGYvzA9gibG3XlNENlWWK0tZgafqLEATbAciFzqqhndwAwgd pz5UtDbmvZE/UZsnB/zhq99+LkPBfa4ODUGnAKCm/+fFMY/87Ics3YEHJi+Hycq0hpmE X1l6pEtrbpmwZ6lo4XIQ7SXaRIEIr4L+PjI38CMxCnIaCICsm6kjFZdgEYF2qsRhDVyP BMM5QwOs5iPcfhRbYrrAvRcxAf3c8ACIFs22ZytHTKywIf9lv7X6PjoXGNJlETSzJEdM nApg==
X-Gm-Message-State: AOAM533arXu/S6/ZR8WmQqgF8DCucwiaMPfGmTVe5iihBOpZL4c9QAIE yqoHrSNeEorDLVffiWcSjIUX/4/4bOybEI59ME66pFY8yAg8JA==
X-Google-Smtp-Source: ABdhPJx0Z2AytW5BGwm/oFBmEA+dbdiyGkedlgwmzIqWl6DMRFjH/nB7FfDl2NRySR5xTPy71JK70x7MphMfR9zQaZ8=
X-Received: by 2002:a92:c7ae:: with SMTP id f14mr13636521ilk.202.1607241583042; Sat, 05 Dec 2020 23:59:43 -0800 (PST)
MIME-Version: 1.0
From: Anuradha Karunarathna <anuradha199528@gmail.com>
Date: Sun, 6 Dec 2020 13:29:32 +0530
Message-ID: <CA+OkT=9R1JW1EV8z9iP-2J1-+7Lv9YaKW070m2x3ZTqXaNNskg@mail.gmail.com>
To: scim@ietf.org
Content-Type: multipart/alternative; boundary="000000000000a0272405b5c71723"
Archived-At: <https://mailarchive.ietf.org/arch/msg/scim/XyaC_5UMR_nYcwUAURLJEj3tTqM>
Subject: [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: Sun, 06 Dec 2020 07:59:53 -0000

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