SCIM: Fix address handling and work around Entra email changes

This commit is contained in:
Brady Wetherington
2026-06-12 21:43:47 +01:00
parent 5169d174ad
commit 288bded7d9
+6 -2
View File
@@ -361,7 +361,11 @@ class SnipeSCIMConfig
{
if ($value) {
try {
$object->email = $value[0]['value'];
if (is_string($value)) {
$object->email = $value; // Weird MS-SCIM stuff :/
} else {
$object->email = $value[0]['value'];
}
} catch (\Throwable $e) {
\Log::debug($e);
throw new SCIMException("Unknown email object: '".print_r($value, true)."'", 422);
@@ -470,7 +474,7 @@ class SnipeSCIMConfig
$address['primary'] = true;
}
return $address;
return [$address];
}
public function doWrite($operation, $subop, $value, Model &$object, ?Path $path = null, $removeIfNotSet = false)