aptdot-dev's picture
Upload 7 files
fd8a8b3 verified
|
Raw History Blame Contribute Delete
3.56 kB
---
license: cc0-1.0
pretty_name: "Synthetic RBAC Users and Authorization Test Cases"
language:
- en
size_categories:
- n<1K
tags:
- rbac
- authorization
- access-control
- synthetic-data
- test-data
- json
- json-schema
configs:
- config_name: users
data_files: records-users.jsonl
default: true
- config_name: authorization_test_cases
data_files: records-authorization_test_cases.jsonl
- config_name: roles
data_files: records-roles.jsonl
- config_name: resources
data_files: records-resources.jsonl
---
# Synthetic RBAC Users and Authorization Test Cases
25 synthetic multi-tenant users, 6 roles with inheritance, 8 resources and 12 authorization test cases, each with the expected allow or deny decision and the reason.
Test authorization logic, policy engines and permission checks against known expected outcomes.
**Full guide and live preview: [www.aptdot.com/datasets/synthetic-rbac-users/](https://www.aptdot.com/datasets/synthetic-rbac-users/)**
| | |
| :--- | :--- |
| Version | 1.0.3 (2026-09-29) |
| License | CC0 1.0 (public domain) |
| JSON Schema | [`synthetic-rbac-users.schema.json`](https://www.aptdot.com/data/v1/synthetic-rbac-users.schema.json) (Draft 2020-12) |
| Source repository | [github.com/mkchd25/aptdot-datasets](https://github.com/mkchd25/aptdot-datasets) |
| Publisher | [Aptdot](https://www.aptdot.com) |
## Files
| File | What it is |
| :--- | :--- |
| `synthetic-rbac-users.json` | The complete dataset, identical to the file on aptdot.com and GitHub |
| `synthetic-rbac-users.schema.json` | Its JSON Schema (Draft 2020-12) |
| `records-*.jsonl` | The main lists, one record per line, for the viewer and the `datasets` library |
## Tables
| Table | Rows | File | Fields |
| :--- | ---: | :--- | :--- |
| `users` | 25 | `records-users.jsonl` | `id`, `uuid`, `email`, `org_id`, `org_role`, `workspace_roles`, `effective_permissions`, `denied_permissions`, ... |
| `authorization_test_cases` | 12 | `records-authorization_test_cases.jsonl` | `case_id`, `description`, `principal`, `action`, `resource`, `expected`, `reason` |
| `roles` | 6 | `records-roles.jsonl` | `role`, `inherits`, `permissions`, `description` |
| `resources` | 8 | `records-resources.jsonl` | `id`, `org_id`, `workspace_id`, `type`, `owner_id`, `sensitivity`, `data_residency` |
## Load it
```python
from datasets import load_dataset
rows = load_dataset("aptdot/synthetic-rbac-users", "users", split="train")
```
Or use the complete JSON file as it is:
```python
import json
from huggingface_hub import hf_hub_download
path = hf_hub_download("aptdot/synthetic-rbac-users", "synthetic-rbac-users.json", repo_type="dataset")
data = json.load(open(path, encoding="utf-8"))
```
## Check your own data against the schema
Paste your records and `synthetic-rbac-users.schema.json` into the free [JSON Schema Validator](https://www.aptdot.com/tools/json-schema-validator/). It runs in your
browser, uploads nothing and explains every problem in plain English with its line number.
## Notes
- The `records-*.jsonl` files are generated from `synthetic-rbac-users.json`. If they ever disagree, `synthetic-rbac-users.json` is the reference.
- Versions match aptdot.com and GitHub. Changes are listed in the repository's [CHANGELOG](https://github.com/mkchd25/aptdot-datasets/blob/main/CHANGELOG.md).
- All people, organisations and products are invented for testing. Email addresses use `example.com`.
## License
CC0 1.0 Universal: public domain. You can copy, change and use it for any purpose, including commercial use, without asking.