Re: [scim] SCIM Synchronization Problem

"Matt Peterson (mpeterso)" <Matt.Peterson@oneidentity.com> Mon, 23 August 2021 23:30 UTC

Return-Path: <Matt.Peterson@oneidentity.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 E403C3A0A07 for <scim@ietfa.amsl.com>; Mon, 23 Aug 2021 16:30:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level:
X-Spam-Status: No, score=-2.101 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, RCVD_IN_MSPIKE_H2=-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=oneidentity.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 NnWnCzMg_uso for <scim@ietfa.amsl.com>; Mon, 23 Aug 2021 16:30:40 -0700 (PDT)
Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2137.outbound.protection.outlook.com [40.107.244.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E0C4E3A0A00 for <scim@ietf.org>; Mon, 23 Aug 2021 16:30:35 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eNRDQznkWmZxF2oN6xvSHA0tQPzACOEaa76KhT2fyx2GGoASIXgtUj0XJE6UXF/66STHYN0mFNqTjY8dGviyNS5uAnT3PHqRXDX/MDixstNtisDfvM+qx7rAC3lU4UXxMz7rSpqagpkjNOjsFb7ALxw6jdBz0RYl7YLQlbSk7j5OW85WuuTEm1UZ7JzGWezl4czZNG/izRMeo1UMFX7NKg9Fyac5z+MfKvsaQas9VOgF8vxVk4CO5ktw4jl8K4BB4HzB9sVGy9BuD8yErT1wKGng98uc4FV9V0Dn5ut2uueCM8S1/sVIAyzXP5h0UDWtqdFPxkkz++EExDTNOKZbww==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FOuuEgD5waRF2nAMMkjRYPcEd9s3Cim8/GVgqfblmXA=; b=TvJUg4cyfq/l/ZqL43Ylnx9AGqTBYReukSDZLCGw/hi1uaRrAdbZ9IdbJ/xqVm0RPo6Re69ELEHESH6DPK22+2RGLTVz4xF6S8EsEUL+xYOIOF00xb2pAQ+6+JzKzcIZK0/reFJmgSYUymTpvZZVKIZsOQlWkYiqj/VN58C26s9Xic90ZxSYvKc4Mg34V6GeSuYukH516avCoTXg8GAoZwluCT+m2V5W/xGPjG3pr+E0sdvfDvqUZnU58/8M4eHL60+7IJPTaUDqEF0LVWJ4SPmmoYpQi17GOXzd5udHuqe5If1nMzcr8PUTwacSKe4ZISDz0Hl1sNvFaqcnr/QdcA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oneidentity.com; dmarc=pass action=none header.from=oneidentity.com; dkim=pass header.d=oneidentity.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oneidentity.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FOuuEgD5waRF2nAMMkjRYPcEd9s3Cim8/GVgqfblmXA=; b=cGP0w0FdZal9PZHOxrLWKFg56AJsK7J3Osw7HVGFKxPMqlaN1l7CqTpuQ3P2tM+nh65Bu9Q92jD3jpNukMTtRUE89O50vvz+DZFy381AW2Tf/UQZ/5i1E+0/jMavAw3J+lnqSbdRYiMLrlBCLRd9RhjFcXSlLQnHCup1pEZ7syGWVFHW6CGfc9K8IYsNqldgo713TarY9IUC1E9xY5z9rYMCxdZT4cl7bKa7IFvsp7Yavriv9skYaqgL7uCuuKZ1ShnNUCLvnpY2Paaer26o93oFUYwRMW2m3BQIVo+XH0sSFB2QzE3d/MGBU6tHFyOWmwJFkRYWRakgvkIj5sXfDw==
Received: from MWHPR19MB0957.namprd19.prod.outlook.com (2603:10b6:300:a4::16) by CO6PR19MB4769.namprd19.prod.outlook.com (2603:10b6:5:34d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Mon, 23 Aug 2021 23:30:34 +0000
Received: from MWHPR19MB0957.namprd19.prod.outlook.com ([fe80::4880:4967:c535:5783]) by MWHPR19MB0957.namprd19.prod.outlook.com ([fe80::4880:4967:c535:5783%4]) with mapi id 15.20.4436.024; Mon, 23 Aug 2021 23:30:33 +0000
From: "Matt Peterson (mpeterso)" <Matt.Peterson@oneidentity.com>
To: Danny Mayer <mayer@pdmconsulting.net>, SCIM WG <scim@ietf.org>
Thread-Topic: [scim] SCIM Synchronization Problem
Thread-Index: AQHXlD4yOJYx7decRU+u2K9sFyDQQ6t7GC/QgAFl1QCABT8JsA==
Date: Mon, 23 Aug 2021 23:30:33 +0000
Message-ID: <MWHPR19MB0957D8533A439A99C4E52C97E1C49@MWHPR19MB0957.namprd19.prod.outlook.com>
References: <e8f9d66c-f356-61b8-d38a-b5288fb9c518@pdmconsulting.net> <MWHPR19MB095771672B28345FA22D6399E1C09@MWHPR19MB0957.namprd19.prod.outlook.com> <10cb88b4-b115-8927-921c-1bde137940fa@pdmconsulting.net>
In-Reply-To: <10cb88b4-b115-8927-921c-1bde137940fa@pdmconsulting.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: pdmconsulting.net; dkim=none (message not signed) header.d=none;pdmconsulting.net; dmarc=none action=none header.from=oneidentity.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 912e49dd-b1f6-4ed8-0553-08d9668e010d
x-ms-traffictypediagnostic: CO6PR19MB4769:
x-microsoft-antispam-prvs: <CO6PR19MB47696A15D76C0A34DEB4387DE1C49@CO6PR19MB4769.namprd19.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:3383;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: QaARE0owGIA63LkZPiRQNVTWXT5hDCtAHhQq2H8cxzE1naw8+UdM8Zx5td6B27sgKCQuV44xOxopUYfZs/PdGWWDArebtp1DNTlrvrsbmLNkhFKtr5i+eHEQ4IQjXLV0665bWAzifyJqQj/EzF4Bc1b7zIL0THhk98Xvx9f7KYTy1HIhV02Sgaw8wKxDr1x8vVSRB3I6Q6rqujyLEc4xIPOAskVamgJnbY+YXdZrrPR6UhWMoYahH/Mz78OMteRZAsMhoDYRvqfUCkOGugDBzkTyZGGlabJKnW8ySZeKrQzVQb4E8Kbsv1w87MKg39sZWXr29iMRzZa1to1OvTGBO9hHC4D/DHoBpJtfcIttVagr9lwmRpbG7jdFPWW7F1RqpiyUh9Dih4+/eV/a0vdq8bR7sVLcO4CSkBhb1ZpUXZSmpbdZOlLCd7LH7wZPZRpWP3Lwdgrf5MgHujoe7g7NhEGSp0VuxhRd4c7NHXJWg+8X61byEcQB6EO+wN47qTERIk0YPksIU5svHpsrrgMRjP6A+8nsUlJlMp38wSCcFgKnso2uSRyQ72XQhnWH6tAUf2sThDeWBi2BoBf7wr68HFEjwimauMTMXN+MJ0euJsBhS/jefgOg5/YxQ1kbFsqmSyxfPr2IXuM32UPgXCsYbDmtqE8Udr1zHFgb3rBb0NNWAS6tFAPXQXv4Sb/QHKsTlogXBkDh4WZam4/ueNiN4S+5kMmluvNQ8VubZAZGmFfPavXEUhG2Xf+KhVMqOIINUbJd/eukusFXdPU00Eqf0K3572GQCCMFBQr3EzbTv8Y=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR19MB0957.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(52536014)(26005)(5660300002)(55236004)(186003)(53546011)(508600001)(6506007)(966005)(2906002)(83380400001)(86362001)(7696005)(110136005)(33656002)(45080400002)(9686003)(55016002)(71200400001)(38070700005)(122000001)(38100700002)(76116006)(66946007)(64756008)(66476007)(66446008)(66556008)(316002)(8936002)(8676002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: B+0xq8OX4l3efs8itl3mA+pntS8eMT499zUCuu7OYB/Yh8AF3X7Lmw4SnEAD/OS8En1RuAbCTtazNl5edGMsM5uDjLL++j+ZKQKIq22lnzoLkaofalsyMnEKOWRe9jEP1JmyX4UjT7GhNfi0lBH929f+jJwm4T1l/hbi/1hKoutGpEgPni3/tJOLPUhIXHkd4Fp3vKtZ8/3L0/Lm4Tmrf0zDVuVuDWe8Lq95JCC4qIzPSRO0Pf9zHIG9OMp33Y8DjKzFkq3td+ZCzdlngr6ZD4ekYqO+3qwdpardKxnmtt26E02R73X4SLO32sJy+hToeeOI969+h1DoqR+Me8r1OAwwTP6bMYqAChH812Qt1VqZ4h4zOBqvnuy8ddDvHjDUi3/ui7z8kWs7gwhyGRlnr1ikh09PJfUFUxPKdPDM4re4y6zygIxgxf5XsoUs7dn2O4rniXO37Fr6+9cQz3S/J2PIXnL0Mib8w7DxcwmCcBJ9uHmCJ5+3nXfBTCSt5MHwMdRoABBL1LOyn4tHgWk0CKH324haPdjQiVQTfL8Z0Jw8+W1Mg5TKvGdEnJFosrpv+QxYSw5owKjrXDVh+Bp0dlPjdrmCjHs1oaAibJ3roDKFHTztRwuQPFFymNInigXVqku0m2J4UxLDS4yITawl2/4LNeGBUP7p5AIPOQovq1FIx0DnEFKW2+JKukUPNyDFR+HkrRjMPPLDeefcX0GS/sk2O9JPeBKJ87UEC3Z/AzgzcLbACOY5vd2DaFr4eTqtTayIytSa5W9Z/Zb4v5ndBzCtGXlkoOZGz9yiUrYwlYTtlmIgIG43wlw0Tu5B6d40Bs/sCzzNTIKV3dXkOiWjfU6aQKUVoCElfOqz+sf+HscuVyApd4aqJ+694iLWE6Uy39dIJxABF17/rdH+qDB4BcrzYG1P5Xj4onSJmibMYQGQkb/MCfTFFIPnkcEYlvg0xQw9lljP0zxwmdrfswRAm+wgqiQNIhGel7LC6lVltZplP8ZK+xKcG85/BnBbY41gc8GmuY+puvuSr5xhtkFg9jkloT5D2ijD8y4izVhDOjG8uuzL1fg/WKsTsrCCBqsOo04mqJPhNYBjLBvYwoBnNrvLP0aRLpS9v3DOaswLZiBpU98SOxiU8voJCQrNpm3tn6WWtmSZWvNZgI8p6mPlI5eyIm/LCDlrOBvqwe1e2Hr6q6FQhpLspAvHQkPsLWHwbIxJh9mufWU9cAS1kl7DahGOuq8kIeyOkYECuVOQxA7OpolvjYTXj1/vnFmcumkyZUd8SMMg3Q5G3n2G3GjDb1219oSygGHFe7E51Dstrs3kpJmmqHEQAdJYjB7o3bZx
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: oneidentity.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MWHPR19MB0957.namprd19.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 912e49dd-b1f6-4ed8-0553-08d9668e010d
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Aug 2021 23:30:33.7156 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 91c369b5-1c9e-439c-989c-1867ec606603
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: fOir9jwdgIfrDh2UT8CbRDV8m/JlXgEmmpDgZUwaxDffPSO3WzXGRWPdGs5BFp5QDoJnWM1Y3lDMFulLcXqnnA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR19MB4769
Archived-At: <https://mailarchive.ietf.org/arch/msg/scim/_66fD-5Zjv2PGXTD522icY4vH_M>
Subject: Re: [scim] SCIM Synchronization Problem
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, 23 Aug 2021 23:30:47 -0000

Thanks for the clarification.  

"Client" and "Server" are as used dozens of times in the existing RFCs which makes these as useful in understanding the SCIM protocol as they are for understanding the HTTP protocol.  In a SCIM protocol exchange there is a thing that provides a resource (the server) and a thing that makes a HTTP request (GET,POST,PUT,PATCH,DELETE) on the resource (the client).  

I think it would be helpful to try and use this generally accepted HTTP terminology if we can -- especially when talking about this synchronization topic.  

Management server <-- SCIM Client
Application Server <-- SCIM Server

With this clarification, seems to me like your Management Server is using SCIM to manage accounts on the Application Server, and that the Management Server would benefit from having an up-to-date cache of accounts that are on the Application Server(s) even for cases where account changes/additions/deletions are made "out of band"  (e.g. directly on the Application Server, not initiated by the Management server.)

Did I understand correctly?



-----Original Message-----
From: Danny Mayer <mayer@pdmconsulting.net> 
Sent: Friday, August 20, 2021 8:54 AM
To: Matt Peterson (mpeterso) <Matt.Peterson@oneidentity.com>; SCIM WG <scim@ietf.org>
Subject: Re: [scim] SCIM Synchronization Problem

CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.


I decided to avoid the client/server naming convention because I find it confusing. The system responsible for managing the user accounts and groups I have declared to be the Management server. I believe you describe this as the "SCIM Client" and is used to GET/POST/PATCH, etc.
to the Application server to maintain the user accounts and groups. The application server is what I believe you call the "SCIM Server". This provides the SCIM API's needed.

I find the use of client/server not helpful to understand their role in the protocol.

Danny

On 8/19/21 1:42 PM, Matt Peterson (mpeterso) wrote:
> Danny,
>
> To help me understand in your post is the "SCIM Client" and what is the "SCIM Server" can you tell me which of your components (the Management Server or the Application Server) implements SCIM endpoints?
>
> The component that acts as a "SCIM Server" is the component that provides the of WebAPI endpoints that conform to the SCIM spec.  For example, the  /user, /group SCIM endpoints.
>
> The component(s) that uses these endpoints to query (GET)  users/groups or to create (POST) user/groups is the "SCIM client".
>
> --
> Matt
>
> -----Original Message-----
> From: scim <scim-bounces@ietf.org> On Behalf Of Danny Mayer
> Sent: Wednesday, August 18, 2021 8:34 AM
> To: SCIM WG <scim@ietf.org>
> Subject: [scim] SCIM Synchronization Problem
>
> CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.
>
>
> I decided that this needs it's own thread and not be part of the meeting minutes.
>
> I have had a great deal of experience dealing with the user account synchronization problem. Here's my view of the problems.
>
> I will be calling one system Management Server and the other system Application Server. I found client/server labels confusing. The Management Server is what I am defining to be the server that sends updates to add/update/remove users and groups to the Application server whose account, groups and access permissions are being managed.
>
> First some definitions of user accounts. There are usually more than one of each of these:
> 1. Builtin accounts
> 2. Special-purpose accounts
> 3. Employee
> 4. Contractor
> 5. Agent
> 6. Customer
>
> There may be more.
>
> 1. Builtin accounts: These are accounts that applications have and there may be more than one. There is always an admin account which can do anything, for example the administrator account in Active Directory or a database admin account. The application may have more accounts for other purposes.
>
> 2. Special-purpose accounts: These may be set up to provide access to other applications, for example a SCIM request to a SCIM REST API should be handled by a special account which cannot be used to login via a UI interface and only be able to perform certain functions. In addition there may be accounts set up to listen for topics or queues on a message queue among other possibilities. Keeping separate accounts like this are important for tracking in logs and applications.
>
> 3. Employee: These are accounts that employees may login to the application.
>
> 4. Contractors: These accounts that a contractor performing work for the company may use to log into an application. Unlike Employee accounts these would have an expiration date.
>
> 5. Agent: Accounts like this are for external users who may need to manage information for their own customers. An example of this is an insurance agent logging in to handle an insurance policy for their clients.
>
> 6. Customers: These are where the customers are using the application directly. For a bank it's likely to be millions of customers. The management platform should not be involved in managing these accounts.
>
> Let's now look at a few example applications.
>
> 1. Helpdesk
> All employees and contractors will need to be able to log into a helpdesk application and enter tickets. This means loading information about all employees and contractors. For a company with only 1000 employees that's manageable. For a company with 100K employees, it's a bigger challenge.
>
> 2. Customer Support
> Only employees or contractors in the department providing customer support need access plus a few other employees. In addition identified customers may need accounts.
>
> 3. Expenses
> Not all employees or contractors will be submitting expenses so it may not be necessary to have accounts for all possible users. This is something that the application owner needs to decide.
>
> Now let's look at logistics.
>
> Bulk load:
> Each application will need an initial set of accounts set up and for something like a helpdesk this could involve load 1000-100,000 accounts.
> The information needed could come from either the management server or separately, say from an HR system. Many servers that I have encountered limit the number of records to something like 1000, so the pagination requirement is needed for this. Even when dealing with a limited subset of employees or contractors you can run into this need.
>
> Synchronization
> An application that is bulk-loaded above may need to be synchronized to the management server if the data did not come from the management server.
>
> Change Management
> This is really a synchronization issue as well. Changes happen all the time and new employees/contractors need to be added, terminated ones removed and updates happen all the time. The best way of dealing with this may be to set up a message queue that each application can subscribe to and they can take the needed action when it's convenient for that application. It's not the only method but it's the one I found to be the most helpful. There are two ways of doing that: 1. send the complete user information for new accounts, send just the change for updating accounts, send the ID for terminated accounts along with some meta information. The other method which I have used is just to send the ID and whether it's new, updated or terminated.
>
> I hope this is helpful to the discussion.
>
> Danny
>
>
> _______________________________________________
> scim mailing list
> scim@ietf.org
> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> ietf.org%2Fmailman%2Flistinfo%2Fscim&amp;data=04%7C01%7CMatt.Peterson%
> 40oneidentity.com%7C93c364afa0274e3fb35b08d963ea643e%7C91c369b51c9e439
> c989c1867ec606603%7C0%7C1%7C637650680638761908%7CUnknown%7CTWFpbGZsb3d
> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C
> 3000&amp;sdata=BqZusI4HsTB%2FyPo9SCrTMW6ZdIQNyVrPxGG%2BiiXx2fs%3D&amp;
> reserved=0
>