diff --git a/pkg/iam/scim/service.go b/pkg/iam/scim/service.go index 4c0ed3a77..a9c254bd0 100644 --- a/pkg/iam/scim/service.go +++ b/pkg/iam/scim/service.go @@ -218,6 +218,10 @@ func (s *Service) CreateUser( return fmt.Errorf("cannot load profile: %w", err) } } else { + if profile.Source == coredata.ProfileSourceSCIM { + return scimerrors.ScimErrorUniqueness + } + profile.Source = coredata.ProfileSourceSCIM profile.State = profileState profile.FullName = fullName