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]
ReturnsNone
when the data set profile has no Your Access defined, otherwise returns the access level as a string. If theDataSetAdmin.generate_requests_only
class attribute is set toTrue
, concatenated Security Request XML bytes will be returned.
❌ Raises
SecurityRequestError
RaisesSecurityRequestError
when the SAF Return Code of a Security Result is equal to4
.DownstreamFatalError
RaisesDownstreamFatalError
when the SAF Return Code of a Security Result is greater than4
.
💻 Example
Python REPL
>>> from pyracf import DataSetAdmin
>>> data_set_admin = DataSetAdmin()
>>> data_set_admin.get_your_access("ESWIFT.TEST.T1136242.P3020470")
"read"