From f6c64abc1a94b9246993971ec7a46ccdac739d00 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 19 Aug 2025 11:41:02 +0100 Subject: [PATCH 1/2] Fixed #17641 - map mobile number via SCIM Signed-off-by: snipe --- app/Models/SnipeSCIMConfig.php | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/app/Models/SnipeSCIMConfig.php b/app/Models/SnipeSCIMConfig.php index b7b789bf3d56..efd4b2929d7a 100644 --- a/app/Models/SnipeSCIMConfig.php +++ b/app/Models/SnipeSCIMConfig.php @@ -153,12 +153,21 @@ function (&$object) { "primary" => AttributeMapping::constant(true)->ignoreWrite() ]], - 'phoneNumbers' => [[ - "value" => AttributeMapping::eloquent("phone"), - "display" => null, - "type" => AttributeMapping::constant("work")->ignoreWrite(), - "primary" => AttributeMapping::constant(true)->ignoreWrite() - ]], + // Mobile and work phone numbers + 'phoneNumbers' => [ + [ + "value" => AttributeMapping::eloquent("phone"), + "display" => null, + "type" => AttributeMapping::constant("work")->ignoreWrite(), + "primary" => AttributeMapping::constant(true)->ignoreWrite(), + ], + [ + "value" => AttributeMapping::eloquent("mobile"), + "display" => null, + "type" => AttributeMapping::constant("mobile")->ignoreWrite(), + "primary" => AttributeMapping::constant(true)->ignoreWrite() + ] + ], 'ims' => [[ "value" => null, From 4b8c371097035e6639dfbcda9d7c2aa90396b8ad Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 19 Aug 2025 12:59:28 +0100 Subject: [PATCH 2/2] Updated true to false Signed-off-by: snipe --- app/Models/SnipeSCIMConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/SnipeSCIMConfig.php b/app/Models/SnipeSCIMConfig.php index efd4b2929d7a..c0d82dff43df 100644 --- a/app/Models/SnipeSCIMConfig.php +++ b/app/Models/SnipeSCIMConfig.php @@ -165,7 +165,7 @@ function (&$object) { "value" => AttributeMapping::eloquent("mobile"), "display" => null, "type" => AttributeMapping::constant("mobile")->ignoreWrite(), - "primary" => AttributeMapping::constant(true)->ignoreWrite() + "primary" => AttributeMapping::constant(false)->ignoreWrite() ] ],