Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import a csv file to delete users + count flag for services #352

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tozach
Copy link

@tozach tozach commented Nov 12, 2024

Resolves #

Problem

  1. The CLI doesnt have a bulk delete users feature. Additional scripting is required to delete multiple users
  2. Need a simple solution to get the count of services than list the services and then count it

Solution

Added import user delete in the CLI to support deletion of multiple users by email
Added count flag to get a count of the services

Checklist

  • I have run this code, and it appears to resolve the stated issue.
  • [] This PR has no user interface changes or has already received approval from product management to change the interface.
  • Make a changie entry that explains the customer facing outcome of this change

Long: `Deletes a list of users from a CSV file with the column headers:
Email`,
Example: `
cat << EOF | opslevel import delete users -f -
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tozach - so I think the where we want to put this is in the normal delete users command but add a --bulk or --csv. Thats a bit more of a surgery so do you mind if I checkout this branch and muck with the code to get that to work?

I definitely don't want it under the import command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants