Getting error SystemForCrossDomainIdentityManagementServiceIncompatible using Azure AD users SCIM provisioning endpoint with ASP.NET Core 6 c#

I want to sync Azure AD users using the SCIM provisioning endpoint with ASP.NET Core 6 and C#.

I am getting this error

Match urn:ietf:params:scim:schemas:extension:enterprise:2.0:User between Microsoft Entra ID and customappsso

SystemForCrossDomainIdentityManagementServiceIncompatible

We are not able to deserialize the resource received from your SCIM endpoint because your SCIM endpoint is not fully compatible with the Azure Active Directory SCIM client. Here is the resource we received from your SCIM endpoint: Please refer to the Azure Active Directory SCIM provisioning documentation (https://docs.microsoft.com/en-us/azure/active-directory/app-provisioning/use-scim-to-provision-users-and-groups) and adapt the SCIM endpoint to be able to process provisioning requests from Azure Active Directory. This operation was retried 0 times.

As per my understanding, the SCIM provisioning working flow is when we start provisioning first time then it’s called POST ~/scim/Users and get all the users from Azure AD and sync with SCIM target application. then after 40 min interval it’s again call SCIM end points and sync what we have made some changes on users from Azure AD.

Then I have configure SCIM provisioning into Enterprise application on Azure.

Also I have added Tenant URL https://testdomain.io/scim and secret key is my JWT token.

Now I have created these endpoints in my ASP.NET Core Web API:

namespace SCIM.Controllers
{
    [Route("[controller]")]
    [ApiController]
public class ScimController : ControllerBase
    {
        [HttpPost("token")]
        public IActionResult GenerateToken()
        {
            var key = new SymmetricSecurityKey(Encoding.ASCII.GetBytes("6wSAGBSZh0zv4sZI63qD7KijhD4d4yLh8L4wd7maZMtJIxBIvvvEK59qHA"));
            var creds = new SigningCredentials(key, SecurityAlgorithms.HmacSha256);

            var token = new JwtSecurityToken(
                issuer: "https://8074-122-170-119-235.ngrok-free.app/scim",
                audience: "8adf8e6e-67b2-4cf2-a259-e3dc5476c621",
                claims: new[]
                {
                new Claim(ClaimTypes.Name, "AzureAD")
                },
                expires: DateTime.Now.AddDays(1),
                signingCredentials: creds);

            return Ok(new { token = new JwtSecurityTokenHandler().WriteToken(token) });
        }

        [HttpGet("Users")]
        public async Task<IActionResult> Users([FromQuery(Name = "filter")] string filter)
        {
        }

        [HttpGet("Users/{id}")]
        public async Task<IActionResult> GetUsers(string id)
        {
            return Ok();
        }

        [HttpPost("Users")]
        public async Task<IActionResult> CreateUser([FromBody] Object item)
        {
            try
            {
                var data = JsonConvert.DeserializeObject<Root>(item.ToString());
                Console.WriteLine(data.active + " " + data.userName);

                var response = new
                {
                    schemas = new[] { "urn:ietf:params:scim:schemas:core:2.0:User",
                        "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User" },
                    id = Guid.NewGuid().ToString(),
                    externalId = data.externalId,
                    userName = data.userName,
                    active = data.active,
                    displayName = data.displayName,
                    emails = data.emails,
                    meta = new { resourceType = "User" },
                    name = data.name
                };
                return Ok(response);
            }
            catch (Exception ex)
            {
                return BadRequest("An error occurred while processing the request.");
            }
        }

        [HttpPatch("Users/{id}")]
        public async Task<IActionResult> UpdateUser(string id,[FromBody] Object item)
        {
            return Ok(null);
        }
    }
}

I have created these endpoints and when we start first time SCIM provisioning then the create endpoint will be called, and user sync on target application and it shows count on Azure. But then after I am update some properties on Azure AD user, then my update patch endpoint is not called and an error occurs:

SystemForCrossDomainIdentityManagementServiceIncompatible

Does anyone know what I am missing in my code?

I will add my error screenshot and also I will show the attribute mapping which I have added on SCIM provisioning.

enter image description here

enter image description here

New contributor

Coder is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật