A free open source IT asset/license management system
SCIM: Fix address handling and work around Entra email changes
Brady Wetherington288bded7d971
diff --git a/app/Models/SnipeSCIMConfig.php b/app/Models/SnipeSCIMConfig.phpindex 48df783925..889cff3e31 100644--- a/app/Models/SnipeSCIMConfig.php+++ b/app/Models/SnipeSCIMConfig.php@@ -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)