Returns 409 when user already exist
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -218,6 +218,10 @@ func (s *Service) CreateUser(
|
|||||||
return fmt.Errorf("cannot load profile: %w", err)
|
return fmt.Errorf("cannot load profile: %w", err)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if profile.Source == coredata.ProfileSourceSCIM {
|
||||||
|
return scimerrors.ScimErrorUniqueness
|
||||||
|
}
|
||||||
|
|
||||||
profile.Source = coredata.ProfileSourceSCIM
|
profile.Source = coredata.ProfileSourceSCIM
|
||||||
profile.State = profileState
|
profile.State = profileState
|
||||||
profile.FullName = fullName
|
profile.FullName = fullName
|
||||||
|
|||||||
Reference in New Issue
Block a user