From 3cb99d25e220c0fb249f5aa7dd46df612701be66 Mon Sep 17 00:00:00 2001 From: Martin Albert Date: Mon, 11 Sep 2023 17:44:09 +0200 Subject: [PATCH] Add default user status --- pkg/connector/user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/connector/user.go b/pkg/connector/user.go index 85df42f..d2491fd 100644 --- a/pkg/connector/user.go +++ b/pkg/connector/user.go @@ -40,6 +40,7 @@ func userResource(ctx context.Context, user *splunk.User, parentResourceID *v2.R []resource.UserTraitOption{ resource.WithEmail(user.Content.Email, true), resource.WithUserProfile(profile), + resource.WithStatus(v2.UserTrait_Status_STATUS_ENABLED), }, resource.WithParentResourceID(parentResourceID), )