Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,27 @@ private static void PatchName(this Core2EnterpriseUser user, PatchOperation2 ope
name.FamilyName = value;
}

if
(
string.Equals(
Microsoft.SCIM.AttributeNames.Formatted,
operation.Path.ValuePath.AttributePath,
StringComparison.OrdinalIgnoreCase)
)
{
value = operation.Value?.Single().Value;
if
(
value != null
&& OperationName.Remove == operation.Name
&& string.Equals(value, name.Formatted, StringComparison.OrdinalIgnoreCase)
)
{
value = null;
}
name.Formatted = value;
}

if (string.IsNullOrWhiteSpace(name.FamilyName) && string.IsNullOrWhiteSpace(name.GivenName))
{
if (nameExisting != null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think your change will affect this part of the codebase. Please update accordingly.

Expand Down