shaar
Access Review Kit. Runs an offline access review: access data in, reviewer packets out, decisions back in, and a verification of what actually changed.
Status: version 0.1.1, a first release for pilots, available on PyPI. A whole review (campaign, decisions, verification) runs end to end and is tested on synthetic data. The Active Directory exporter,
shaar collect ad, andshaar collect entrahave not been run against a real domain, a real WinRM endpoint, or a real Entra tenant, and packets have been tested with LibreOffice and openpyxl, not with Excel or Google Sheets. Run a small pilot review first. See Limitations and the documentation site (also in the docs folder).
How it differs from existing tools. Reviews run by spreadsheet and email leave no check that the returned sheet is the one that was sent, and nothing that says afterwards whether a removal happened. Identity governance suites do both, with workflow, reminders, and a web interface, and they need a server and an account on the systems they manage. shaar is the small, offline middle: it works from exports you give it, binds each packet to the campaign it came from, and says unknown where it cannot tell. It makes no changes to any system, has no workflow, and does not certify that a review meets any standard.
About the name
shaar (SHAR). Hebrew: gate, where the elders sat to judge who could enter.
What it does
shaar runs an access review from files. It reads who holds access in Active Directory, Entra ID, or any system that can export a CSV, picks one reviewer for every entry (the person's manager, the resource's owner, or a name from your list), and writes one Excel workbook per reviewer. Reviewers mark each row Keep, Remove, or Unsure and return the workbook. shaar checks every returned row against what it sent, writes a decision record and the list of removals for an administrator to make, and later reads a fresh export to say whether each removal really happened. Where it cannot tell, it says unknown. It never grants, changes, or removes access.
Try it in five minutes
shaar example writes made-up data (corp.example) and prints three commands to run in order. After installing:
shaar example shaar-demo
Copy the three printed commands one after another (see the quickstart for what each prints). Each exits with code 1 on purpose: the example has two entries with no reviewer, one Unsure answer, one blank answer, and a removal that was not made. A real result from the committed example, the verification report:
2 of 5 removals verified. Still present: 1 past due, 0 not yet due. Unknown: 2.
The decision record is not complete, so this does not show that the review was
carried out: 3 entries have no accepted decision (undecided 1, unassigned 2);
1 entry marked Unsure.
All the sample files, reports, and returned packets are in examples/corp-example.
The four steps
-
Start a campaign. shaar reads the exports, assigns reviewers, and writes
campaign.jsonand one packet per reviewer.shaar campaign ad.jsonl entra.jsonl ledger.csv --map ledger-map.toml \ --name "Q4 2026 access review" --reviewers manager --due 2026-11-16 -o campaign
-
Send the packets. Each reviewer gets only their own
packet-*.xlsxfile from thecampaignfolder. They fill in the Decision column and send it back. -
Read the decisions. Put the returned workbooks in one folder, for example
returned/.shaar decisions campaign returned/*.xlsx -o decisions
The report lists accepted decisions, the removals to make, and every row that needs attention. The exit code is
1unless every entry has a firm decision and the campaign read all its input. -
Verify. After the due date, export access again and check the removals. A CSV export does not say when it was taken, so its column map gives the time (
collected_at); the later export needs its own map with the later time.shaar verify campaign decisions after/ad.jsonl after/entra.jsonl after/ledger.csv \ --map after/ledger-map.toml -o verification
These file names are the ones in your own folders. In the demo they are
shaar-demo/before/,shaar-demo/returned/, andshaar-demo/after/.
The usage guide explains every option, and campaigns explains how reviewers are chosen and which returned rows count.
Inputs
- shaar exports from the PowerShell exporter (
shaar exporter DIR) or fromshaar collect adandshaar collect entra. They record nesting, owners, managers, and whether each group was read in full. See Collecting. - CSV files from any other system, with a column map (
--map FILE.toml) or a built-in preset (--preset generic,ad-users-groups, orentra-members). shaar cannot know whether a CSV is complete, so it treats it as complete unless the map says otherwise. See Formats.
shaar detects the kind of each input from its content, not its name.
What it will not do
- Grant, change, or remove access. An administrator makes the removals. shaar only checks them later.
- Replace an identity governance platform. It has no workflow, no reminders, and no web interface.
- Prove that a reviewer was who the workbook says. Packets are bound to the campaign by hashes, not signed.
- See access that no input recorded, or judge whether access is appropriate.
See Limitations and the threat model.
Install
shaar needs Python 3.11 or newer. Reading files and writing packets needs no other package.
pipx install faithful-shaar
pipx ensurepath
pipx ensurepath puts the shaar command on your PATH; run it once and open a new terminal. With pip, use pip install faithful-shaar. For a fixed version, use faithful-shaar==0.1.1.
To try the development version from GitHub, run pipx install git+https://github.com/faithful-oversight/faithful-shaar.
Collecting and secret providers are optional extras:
| Extra | Adds | Needed for |
|---|---|---|
ad |
pypsrp |
shaar collect ad, which runs the exporter over WinRM |
entra |
azure-identity |
shaar collect entra, which signs in to Microsoft Graph |
keyring |
keyring |
--secret keyring:... |
vault |
hvac |
--secret vault:... |
aws |
boto3 |
--secret aws:... |
azure |
azure-identity, azure-keyvault-secrets |
--secret azure:... |
pipx install "faithful-shaar[ad,entra]"
If shaar is already installed, add --force to add an extra: pipx install --force "faithful-shaar[ad,entra]". With pip, use pip install "faithful-shaar[ad,entra]".
To work from source, see CONTRIBUTING.md.
Exit codes
| Code | Meaning |
|---|---|
0 |
Success, with nothing that needs attention. |
1 |
campaign, decisions, or verify finished and found something to act on, including a decision record that is not complete. |
2 |
The command was used incorrectly. |
3 |
An input, output, or collection problem. |
4 |
An internal error in shaar. This is a bug. |
Design goals
- Read-only. The tool never changes the systems it examines. Collectors only read, and the Entra collector sends only GET requests.
- Explicit unknowns. A removal that cannot be checked is unknown, never removed.
- Traceable findings. Every finding cites its file and place, and every output has a manifest with SHA-256 digests.
- Private by default. Packets hold one reviewer's rows. Files are owner-only and never overwritten without
--force. - Synthetic test data only. No real organization's data is ever committed.
Documentation
- Quickstart
- Usage
- Formats
- Campaigns
- Verification
- Collecting
- Reports and output
- Limitations
- Architecture and threat model
- Releasing and decision records
Security
Please do not report security problems in public issues. See SECURITY.md.
Contributing
Contributions are welcome. Read CONTRIBUTING.md and the code of conduct first.
Trademarks
shaar is not affiliated with, endorsed by, or sponsored by Microsoft. Active Directory, Entra ID, Microsoft Graph, Excel, and PowerShell are trademarks of Microsoft Corporation, named here only to say what shaar reads and writes. Google Sheets is a trademark of Google LLC.
License
Copyright 2026 Faithful Oversight, LLC. Licensed under the Apache License, Version 2.0.
Metadata
Release files for faithful-shaar 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| faithful_shaar-0.1.2.tar.gz | 370.6 kB | With provenance | Details for faithful_shaar-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faithful_shaar-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for faithful_shaar-0.1.2-py3-none-any.whl |
Total release size: 517.2 kB
Release files / faithful_shaar-0.1.2.tar.gz
| Download URL | faithful_shaar-0.1.2.tar.gz |
|---|---|
| Size | 370.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89300c9b8a7c3e19f11251a08e1969e9041d4cd4d60baa3d7fa076aae4782cdc
|
|
BLAKE2b-256 checksum How to use checksums |
69e4fc8c3c7dead883342a75884dea0b9427163282d61d242333e6bfed0e1834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / faithful_shaar-0.1.2-py3-none-any.whl
| Download URL | faithful_shaar-0.1.2-py3-none-any.whl |
|---|---|
| Size | 146.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f7afaf28d57e05ade23613b81f102d01d5739c8726e916395c50475f144873f
|
|
BLAKE2b-256 checksum How to use checksums |
7c23e8e8815aefdfc787ef45097a7af599e37413f5e56f8fc4934b2d43456296
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for faithful-shaar 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for faithful_shaar-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.