{"ref":"artifact:sap-samples-s4hana-hana-audit-policies","page":"/artifacts/sap-samples-s4hana-hana-audit-policies","json":"/artifacts/sap-samples-s4hana-hana-audit-policies.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"sap-samples-s4hana-hana-audit-policies","name":"s4hana-hana-audit-policies","artifact_type":"practice","ecosystem":"btp","domain":"security-and-compliance","origin_ring":"sap-official","use_as":"reference","description":{"one_line":"SQL templates for the [SAP HANA](artifact:sap-hana) audit policies of the database tenant an [SAP S/4HANA](external:sap-s4hana) system uses, in four sets from the mandatory default policies to scenario examples.","short":"SQL templates for HANA audit policies of an S/4HANA tenant","what_it_solves":"An SAP S/4HANA system needs HANA audit policies to trace security-relevant changes on its database tenant, and this project ships them as SQL files instead of leaving each customer to write its own. They come in four sets: a mandatory one, identical to the policies the SAP HANA Cockpit Audit Policy Wizard provides and set as the default for new installations of SAP S/4HANA 2021, 2022, 2023 and SAP BW/4HANA 2021 and later; a second for S/4HANA schema access logging, which the README says varies with how the database is used; a third for an extended system changelog and monitoring; and a fourth of examples for specific scenarios that the README says should not be applied without careful consideration. A fifth file exposes part of the audit log through a table function, for a user who should not be granted select on every entry. Applying and adjusting the templates on a tenant stays the administrator's job: the README notes that technical users not handled as the SQL files describe can generate a high number of audit log events, and that a policy fails to be created if the global minimal retention period is higher than the one in the policy."},"links":{"repo":"https://github.com/SAP-samples/s4hana-hana-audit-policies"},"identity":{"license":"Apache-2.0"},"source_available":true,"provides":[{"capability":"capability:audit-logging","what_it_does":"Defines the SAP HANA audit policies that trace security-relevant changes and schema access on the HANA database tenant an SAP S/4HANA system uses, as SQL files in four sets, with a table function that exposes part of the audit log to a user without select on all entries.","sources":[{"url":"https://github.com/SAP-samples/s4hana-hana-audit-policies","title":"SAP-samples/s4hana-hana-audit-policies — README, Description","checked":"2026-10-19","quote":"This project provides HANA audit policy templates for the SAP HANA database tenant used by SAP S/4HANA."},{"url":"https://github.com/SAP-samples/s4hana-hana-audit-policies","title":"SAP-samples/s4hana-hana-audit-policies — README, Mandatory HANA Audit Policies","checked":"2026-10-19","quote":"A first set of policies defined as mandatory ensure traceability of security relevant changes."}]}],"requires":[{"ref":"external:sap-s4hana","for":"the system whose database tenant the policies are written for; the README states it as the one requirement.","requirement":"required","sources":[{"url":"https://github.com/SAP-samples/s4hana-hana-audit-policies","title":"SAP-samples/s4hana-hana-audit-policies — README, Requirements","checked":"2026-10-19","quote":"To use those policies you need SAP S/4HANA."}]},{"ref":"artifact:sap-hana","for":"the database the SQL files are run against: the HANA tenant the S/4HANA system uses.","requirement":"required","sources":[{"url":"https://github.com/SAP-samples/s4hana-hana-audit-policies","title":"SAP-samples/s4hana-hana-audit-policies — README, Description","checked":"2026-10-19","quote":"This project provides HANA audit policy templates for the SAP HANA database tenant used by SAP S/4HANA."}]}],"maintainers":["actor:sap-samples"],"drafted_with_ai":true,"provenance":{"discovered_via":[{"source":"source:curator"}],"first_seen":"2026-09-14"},"contributors":["actor:ajinkyapatil8190","actor:bjoernbrenchersap","actor:btbernard","actor:joegoerlich","actor:leapoletinsap","actor:saint-j"]},"effective_normative_relations":[],"readings":{"liveness":[{"label":"Maintenance","tier":"unknown","evidence":"no release data"},{"label":"Continuity","tier":"good","evidence":"6 contributors, org-owned"},{"label":"Repository","tier":"good","evidence":"pushed 2026-07, not archived"}],"compatibility":[{"label":"Declared for","tier":"unknown","evidence":"no BTP release lines in the atlas"},{"label":"Survived majors","tier":"unknown","evidence":"no BTP release lines in the atlas"},{"label":"Maintainer's CI","tier":"fair","evidence":"no CI configured"}],"practice":[{"label":"Tests","tier":"fair","evidence":"none found in the tree"},{"label":"Docs","tier":"fair","evidence":"README 4 KB"},{"label":"Changelog","tier":"fair","evidence":"none in the repo"}],"reach":[{"value":null,"unit":"installs/week"},{"value":20,"unit":"watching"}]},"signals":{"crawled_at":"2026-10-25","npm":"not published under this name","stars":20,"forks":5,"open_issues":2,"archived":false,"pushed_at":"2026-07-09","license_spdx":"Apache-2.0","org_owned":true,"default_branch":"main","created_at":"2021-07-07T16:50:47Z","open_prs":2,"tree_truncated":false,"test_files":0,"workflows":0,"other_ci":false,"readme_bytes":3907,"docs_files":0,"changelog":false,"license_file":true,"dts_files":0,"first_commit":"2021-07-07","last_commit":"2026-06-09","commits":94,"contributors":6,"readme_path":"README.md","readme_sha":"5de5e85b4fed3786c32436bbbf0ab00811a9063d","repo_read":"2026-10-25"},"edges":{"maintainers":[{"ref":"actor:sap-samples","name":"SAP Samples","json":"/actors/sap-samples.json"}],"contributors":[{"ref":"actor:ajinkyapatil8190","name":"Ajinkya Patil","json":"/actors/ajinkyapatil8190.json"},{"ref":"actor:bjoernbrenchersap","name":"Bjoern Brencher","json":"/actors/bjoernbrenchersap.json"},{"ref":"actor:btbernard","name":"Brian Bernard","json":"/actors/btbernard.json"},{"ref":"actor:saint-j","name":"Christiane","json":"/actors/saint-j.json"},{"ref":"actor:joegoerlich","name":"Joe Görlich","json":"/actors/joegoerlich.json"},{"ref":"actor:leapoletinsap","name":"Lea Poletin","json":"/actors/leapoletinsap.json"}],"explained_by":[],"alternative_to_this":[],"needed_by":[],"available_via":[],"parts":[],"add_ons":[],"answered_through_parts":[]}}