Fix mapping google workspace

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-11 11:33:12 +01:00
parent 467973e9b6
commit 3354bbd16b
2 changed files with 10 additions and 5 deletions

View File

@@ -46,6 +46,7 @@ type (
EnterpriseOrganization string `json:"-"`
Division string `json:"-"`
EmployeeNumber string `json:"-"`
UserType string `json:"-"`
ManagerValue string `json:"-"`
PreferredLanguage string `json:"-"`
}
@@ -229,6 +230,9 @@ func buildUserPayload(user *User) map[string]any {
if user.ExternalID != "" {
payload["externalId"] = user.ExternalID
}
if user.UserType != "" {
payload["userType"] = user.UserType
}
if user.PreferredLanguage != "" {
payload["preferredLanguage"] = user.PreferredLanguage
}