Re: [scim] SCIM Synchronization Problem

Danny Mayer <> Fri, 20 August 2021 14:54 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 7FE6A3A0D3B for <>; Fri, 20 Aug 2021 07:54:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id ih9H27Og5djf for <>; Fri, 20 Aug 2021 07:54:23 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 5D94A3A0D36 for <>; Fri, 20 Aug 2021 07:54:21 -0700 (PDT)
Received: from newusers-MBP.fios-router.home ( []) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by (Postfix) with ESMTPSA id 4Grl5l2DwyzMNWd; Fri, 20 Aug 2021 14:54:19 +0000 (UTC)
To: "Matt Peterson (mpeterso)" <>, SCIM WG <>
References: <> <>
From: Danny Mayer <>
Message-ID: <>
Date: Fri, 20 Aug 2021 10:54:18 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US
Archived-At: <>
Subject: Re: [scim] SCIM Synchronization Problem
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Simple Cloud Identity Management BOF <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 20 Aug 2021 14:54:29 -0000

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.


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 <> On Behalf Of Danny Mayer
> Sent: Wednesday, August 18, 2021 8:34 AM
> To: SCIM WG <>
> 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