Skip to content

A free open source IT asset/license management system

Fixed #17641 - map mobile number via SCIM

snipef6c64abc1a94
diff --git a/app/Models/SnipeSCIMConfig.php b/app/Models/SnipeSCIMConfig.php
index b7b789bf3d..efd4b2929d 100644
--- a/app/Models/SnipeSCIMConfig.php
+++ b/app/Models/SnipeSCIMConfig.php
@@ -153,12 +153,21 @@ class SnipeSCIMConfig extends \ArieTimmerman\Laravel\SCIMServer\SCIMConfig
"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,