Skip to content

chore/remove-ecm-apis #405

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

Merged
merged 2 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
127.0.0.1 core
127.0.0.1 alerts
127.0.0.1 alert-rules
127.0.0.1 detection-lists
127.0.0.1 audit-log
127.0.0.1 file-events
127.0.0.1 storage
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
The intended audience of this file is for py42 consumers -- as such, changes that don't affect
how a consumer would use the library (e.g. adding unit tests, updating documentation, etc) are not captured here.

## 1.17.0 - 2023-08-04

### Removed

- Removed the following command groups following deprecation:
- `detection-lists`
- `departing-employee`
- `high-risk-employee`
- APIs were replaced by the `watchlists` commands

## 1.16.6 - 2023-04-12

### Fixed
Expand Down
35 changes: 1 addition & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ Use the `code42` command to interact with your Code42 environment.
* `code42 security-data` is a CLI tool for extracting AED events.
Additionally, you can choose to only get events that Code42 previously did not observe since you last recorded a
checkpoint (provided you do not change your query).
* `code42 high-risk-employee` is a collection of tools for managing the high risk employee detection list. Similarly,
there is `code42 departing-employee`.
* `code42 watchlists` is a collection of tools for managing your employee watchlists.

## Requirements

Expand Down Expand Up @@ -212,38 +211,6 @@ To get the results of a saved search, use the `--saved-search` option with your
code42 security-data search --saved-search <ID>
```

## Detection Lists

You can both add and remove employees from detection lists using the CLI. This example uses `high-risk-employee`.

```bash
code42 high-risk-employee add [email protected] --notes "These are notes"
code42 high-risk-employee remove [email protected]
```

Detection lists include a `bulk` command. To add employees to a list, you can pass in a csv file. First, generate the
csv file for the desired command by executing the `generate-template` command:

```bash
code42 high-risk-employee bulk generate-template add
```

Notice that `generate-template` takes a `cmd` parameter for determining what type of template to generate. In the
example above, we give it the value `add` to generate a file for bulk adding users to the high risk employee list.

Next, fill out the csv file with all the users and then pass it in as a parameter to `bulk add`:

```bash
code42 high-risk-employee bulk add users_to_add.csv
```

Note that for `bulk remove`, the file only has to be an end-line delimited list of users with one line per user.

## Known Issues

In `security-data`, only the first 10,000 of each set of events containing the exact same insertion timestamp is
reported.

## Troubleshooting

If you keep getting prompted for your password, try resetting with `code42 profile reset-pw`.
Expand Down
4 changes: 0 additions & 4 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
Trusted Activities <commands/trustedactivities.rst>
Users <commands/users.rst>
Watchlists <commands/watchlists.rst>
(DEPRECATED) Departing Employee <commands/departingemployee.rst>
(DEPRECATED) High Risk Employee <commands/highriskemployee.rst>
```

* [Alert Rules](commands/alertrules.rst)
Expand All @@ -32,5 +30,3 @@
* [Trusted Activities](commands/trustedactivities.rst)
* [Users](commands/users.rst)
* [Watchlists](commands/watchlists.rst)
* [(DEPRECATED) Departing Employee](commands/departingemployee.rst)
* [(DEPRECATED) High Risk Employee](commands/highriskemployee.rst)
3 changes: 0 additions & 3 deletions docs/commands/departingemployee.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/commands/highriskemployee.rst

This file was deleted.

2 changes: 0 additions & 2 deletions docs/guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
Add and manage cases <userguides/cases.md>
Perform bulk actions <userguides/bulkcommands.md>
Manage watchlist members <userguides/watchlists.md>
(DEPRECATED) Manage detection list users <userguides/detectionlists.md>
```

* [Get started with the Code42 command-line interface (CLI)](userguides/gettingstarted.md)
Expand All @@ -35,4 +34,3 @@
* [Add and manage cases](userguides/cases.md)
* [Perform bulk actions](userguides/bulkcommands.md)
* [Manage watchlist members](userguides/watchlists.md)
* [(DEPRECATED) Manage detection list users](userguides/detectionlists.md)
62 changes: 0 additions & 62 deletions docs/userguides/detectionlists.md

This file was deleted.

2 changes: 1 addition & 1 deletion src/code42cli/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.16.6"
__version__ = "1.17.0"
183 changes: 0 additions & 183 deletions src/code42cli/cmds/departing_employee.py

This file was deleted.

Loading