Read Authorization Object (SU21)
sap_get_auth_objectRead SAP authorization object definitions (SU21): description, object class, fields. Combine with transaction and role/user data to audit authorizations and see what an object checks.
Instructions
Read an authorization object's definition (SU21) via ADT: description, object class, and fields. Use with sap_get_transaction (TSTCA rows) and sap_sql_query (USR12/AGR_1251) for authorization audits.
Args:
name (string): the authorization object.
include_activities (boolean): append the system-wide ACTVT catalog (large — several hundred entries).
response_format.
Returns (json): { name, type, description?, objectClass?, objectClassDescription?, fields: [{name, description, ...}], activities?, activitiesError?, raw? }.
Examples:
"What does S_TCODE check?" -> name='S_TCODE'.
"Which fields does S_DEVELOP have, and what do the ACTVT values mean?" -> name='S_DEVELOP', include_activities=true. Notes:
This reads the object DEFINITION. For where it is actually checked, combine with sap_get_transaction (SE93 start checks), sap_sql_query over USOBT_C/USOBX_C (SU24 defaults), AGR_1251 (role values) and USR12 (user values).
The activity catalog is global, not per-object, and is fetched separately; if that call fails the main result is still returned with activitiesError set.
'raw' appears only when this release structures the fields differently than expected — report it if you see it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Authorization object name (e.g. 'S_TCODE', 'S_DEVELOP'). Case-insensitive. | |
| response_format | No | Output format: 'markdown' (human-readable, default) or 'json' (structured). | markdown |
| include_activities | No | Also fetch the global activity catalog (ACTVT values with texts) from the companion listvalues endpoint. |