Skip to content

A free open source IT asset/license management system

Eager load SCIM relations

snipea93983ebfe2d
diff --git a/app/Models/SnipeSCIMConfig.php b/app/Models/SnipeSCIMConfig.php
index 1b1c957746..0bdf9b9088 100644
--- a/app/Models/SnipeSCIMConfig.php
+++ b/app/Models/SnipeSCIMConfig.php
@@ -798,8 +798,8 @@ class SnipeSCIMConfig
'class' => SCIMUser::class,
'singular' => 'User',
- // eager loading
- 'withRelations' => [],
+ // Eager load the relations.
+ 'withRelations' => ['companies', 'manager'],
'description' => 'User Account',
'map' => (new SnipeRootComplex)->withSubAttributes(