Skip to content

Commit

Permalink
move locked out user status to enabled (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenleach authored Nov 27, 2024
1 parent 655b33d commit d4547e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/connector/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ func userResource(ctx context.Context, user *okta.User) (*v2.Resource, error) {
// TODO: change userStatusDeprovisioned to STATUS_DELETED once we show deleted stuff in baton & the UI
// case userStatusDeprovisioned:
// options = append(options, resource.WithDetailedStatus(v2.UserTrait_Status_STATUS_DELETED, user.Status))
case userStatusSuspended, userStatusLockedOut, userStatusDeprovisioned:
case userStatusSuspended, userStatusDeprovisioned:
options = append(options, resource.WithDetailedStatus(v2.UserTrait_Status_STATUS_DISABLED, user.Status))
case userStatusActive, userStatusProvisioned, userStatusStaged, userStatusPasswordExpired, userStatusRecovery:
case userStatusActive, userStatusProvisioned, userStatusStaged, userStatusPasswordExpired, userStatusRecovery, userStatusLockedOut:
options = append(options, resource.WithDetailedStatus(v2.UserTrait_Status_STATUS_ENABLED, user.Status))
default:
options = append(options, resource.WithDetailedStatus(v2.UserTrait_Status_STATUS_UNSPECIFIED, user.Status))
Expand Down

0 comments on commit d4547e4

Please sign in to comment.