SCIM: Add is provisioned field to update command (#107978)

* Remove noisy log line

* Add IsProvisioned field to UpdateUserCommand

* Update user store to include the new IsProvisioned field

* Update store tests to include the new IsProvisioned field
This commit is contained in:
linoman
2025-07-10 23:49:45 +02:00
committed by GitHub
parent 1cd6ef6b84
commit a1e4280603
4 changed files with 48 additions and 3 deletions
+4
View File
@@ -278,6 +278,10 @@ func (ss *sqlStore) Update(ctx context.Context, cmd *user.UpdateUserCommand) err
q = q.MustCols("help_flags1")
usr.HelpFlags1 = *cmd.HelpFlags1
})
setOptional(cmd.IsProvisioned, func(v bool) {
q = q.UseBool("is_provisioned")
usr.IsProvisioned = v
})
if _, err := q.Update(&usr); err != nil {
return err