From f65db5224746d4cc2f1d2fd7bcc31ffb518b06bd Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 31 Jan 2025 10:36:18 +0100 Subject: [PATCH] fix: scim create users dont send init emails (#9283) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Which Problems Are Solved - when a scim user is provisioned, a init email could be sent # How the Problems Are Solved - no init email should be sent => hard code false for the email init param # Additional Context Related to https://github.com/zitadel/zitadel/issues/8140 Co-authored-by: Fabienne Bühler --- internal/api/scim/resources/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/scim/resources/user.go b/internal/api/scim/resources/user.go index 08997967d9..8d9ef70592 100644 --- a/internal/api/scim/resources/user.go +++ b/internal/api/scim/resources/user.go @@ -154,7 +154,7 @@ func (h *UsersHandler) Create(ctx context.Context, user *ScimUser) (*ScimUser, e return nil, err } - err = h.command.AddUserHuman(ctx, orgID, addHuman, true, h.userCodeAlg) + err = h.command.AddUserHuman(ctx, orgID, addHuman, false, h.userCodeAlg) if err != nil { return nil, err }