diff --git a/pkg/iam/scim/errors.go b/pkg/iam/scim/errors.go index d3763fcb8..598b754b7 100644 --- a/pkg/iam/scim/errors.go +++ b/pkg/iam/scim/errors.go @@ -89,3 +89,11 @@ func (e *ErrSCIMUserAlreadyExists) Error() string { func NewSCIMUserAlreadyExistsError(email string) *ErrSCIMUserAlreadyExists { return &ErrSCIMUserAlreadyExists{Email: email} } + +type ErrUnsupportedFilter struct { + Reason string +} + +func (e *ErrUnsupportedFilter) Error() string { + return fmt.Sprintf("unsupported filter: %s", e.Reason) +} diff --git a/pkg/iam/scim/types.go b/pkg/iam/scim/types.go index a8d4bcbee..e7b87cc17 100644 --- a/pkg/iam/scim/types.go +++ b/pkg/iam/scim/types.go @@ -27,15 +27,6 @@ type UserFilter struct { UserName *string } -// ErrUnsupportedFilter is returned when a SCIM filter uses unsupported operators or attributes -type ErrUnsupportedFilter struct { - Reason string -} - -func (e *ErrUnsupportedFilter) Error() string { - return fmt.Sprintf("unsupported filter: %s", e.Reason) -} - // ParseUserFilter converts a SCIM filter AST expression to a UserFilter. // Returns (nil, nil) if no filter is provided. // Returns an error if the filter uses unsupported operators or attributes.