diff --git a/pkg/ngimporter/import_users.go b/pkg/ngimporter/import_users.go index 155cf2a39..ddc4bda98 100644 --- a/pkg/ngimporter/import_users.go +++ b/pkg/ngimporter/import_users.go @@ -35,6 +35,8 @@ func importUsers(ctx context.Context, is *types.ImportSource, ns *cct.Namespace) } ww.Write(header) + now := time.Now() + // create users for { looper: @@ -100,6 +102,13 @@ func importUsers(ctx context.Context, is *types.ImportSource, ns *cct.Namespace) if val == "1" { goto looper } + + case "isactive": + if strings.ToLower(val) != "true" { + u.SuspendedAt = &now + } else { + u.SuspendedAt = nil + } } }