SCIM Update User userName problem

Cristian Camilo Preciado Sanchez 0 Reputation points
2025-01-23T21:39:55.6566667+00:00

Hi everyone, I'm working on implementing a SCIM 2.0 endpoint for updating users with a PATCH request (PATCH /Users/Id), and I've encountered the following error:

2025-01-23_11-16

2025-01-23_11-17

and my response 2025-01-23_11-17_1

I don't understand the error because userName is in my response, add Json

{
 	
	"addresses"
 					{
							"type"
							"streetAddress"
							"locality"
							"region"
							"country"
							"primary"
 					}
 	],
	"displayName"
	"emails"
		 {
			"value"
			"type"
			"primary"
		 }
 	],
	"externalId"
	"id"
	"meta"
		"resourceType"
		"created"
		"lastModified"
	 },
	"name"
		"givenName"
		"familyName"
		"middleName"
	 },
	"phoneNumbers"
		 {
			"type"
			"value"
			"primary"
		 }
 	],
	"schemas"
		"urn:ietf:params:scim:schemas:core:2.0:User"
	 ],
	"title"
	"userName"
}

Any guidance or suggestions would be greatly appreciated. Thanks in advance!

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,996 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sanoop M 255 Reputation points Microsoft Vendor
    2025-01-24T22:22:50.5866667+00:00

    Hello @Cristian Camilo Preciado Sanchez,

    Thank you for posting your query on Microsoft Q&A.

    Based on your issue description, I understand that you are working on implementing a SCIM 2.0 endpoint for updating users with a PATCH request (PATCH /Users/Id), and you have encountered the following error: SCIM API is not compatible with Entra ID provisioning. Review failed results below.

    The SCIM validator is complaining that:

    The value of userName is Missing from the fetched Resource.

    Based on the error what you are getting, I would advise you to submit the update request for your gallery application. You can work through why the validator is failing on those tests - and if it's due to something on your end or on the validator's end - after submitting, as you'll be on an email thread with the product team that manages the validator.

    As a side note, update requests to provisioning integrations in the gallery are not immediately processed and may wait in a backlog.

    Please refer to the below attached thread link where the similar issue has been discussed.

    https://learn.microsoft.com/en-us/answers/questions/1457190/scim-validator-weird-patch-error

    I hope this above information provided is helpful. Please feel free to reach out if you have any further questions.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Thanks and Regards,

    Sanoop Mohan

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.