Your Access

Data Set Profile Administration functions for checking the user’s access to a data set profile.

DataSetAdmin.get_your_access()

def get_your_access(self, data_set: str) -> Union[str, bytes, None]:

📄 Description

Check Your Access for a data set profile.

📥 Parameters

  • data_set
    The data set profile for which RACF should check the current user’s access level.

📤 Returns

  • Union[str, bytes, None]
    Returns None when the data set profile has no Your Access defined, otherwise returns the access level as a string. If the DataSetAdmin.generate_requests_only class attribute is set to True, concatenated Security Request XML bytes will be returned.

❌ Raises

  • SecurityRequestError
    Raises SecurityRequestError when the SAF Return Code of a Security Result is equal to 4.
  • DownstreamFatalError
    Raises DownstreamFatalError when the SAF Return Code of a Security Result is greater than 4.

💻 Example

Python REPL
>>> from pyracf import DataSetAdmin
>>> data_set_admin = DataSetAdmin()
>>> data_set_admin.get_your_access("ESWIFT.TEST.T1136242.P3020470")
"read"