Group Auditor Authority
Group Connection Administration functions for modifying a userโs Group Auditor Authority.
GroupAdmin.give_group_auditor_authority()
def give_group_auditor_authority(self, userid: str, group: str) -> Union[dict, bytes]:
๐ Description
Give a user Auditor authority within a group.
๐ฅ Parameters
userid
The z/OS userid of the user to give Auditor authority to within a group.group
The group to give the user Auditor authority in.
๐ค Returns
Union[dict, bytes]
Returns a Security Result Steps dictionary or concatenated Security Request XML bytes if theConnectionAdmin.generate_requests_only
class attribute is set toTrue
.
โ 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 ConnectionAdmin
>>> connection_admin = ConnectionAdmin()
>>> connection_admin.give_group_auditor_authority("squidwrd", "testgrp0")
{'step1': {'securityResult': {'groupConnection': {'name': 'SQUIDWRD', 'group': 'TESTGRP0', 'operation': 'set', 'requestId': 'ConnectionRequest', 'commands': [{'safReturnCode': 0, 'returnCode': 0, 'reasonCode': 0, 'image': 'CONNECT SQUIDWRD GROUP (TESTGRP0) AUDITOR '}]}, 'returnCode': 0, 'reasonCode': 0, 'runningUserid': 'testuser'}}}
Security Result Steps Dictionary as JSON
{
"step1": {
"securityResult": {
"groupConnection": {
"name": "SQUIDWRD",
"group": "TESTGRP0",
"operation": "set",
"requestId": "ConnectionRequest",
"commands": [
{
"safReturnCode": 0,
"returnCode": 0,
"reasonCode": 0,
"image": "CONNECT SQUIDWRD GROUP (TESTGRP0) AUDITOR "
}
]
},
"returnCode": 0,
"reasonCode": 0
}
}
}
GroupAdmin.take_away_group_auditor_authority()
def take_away_group_auditor_authority(self, userid: str, group: str) -> Union[dict, bytes]:
๐ Description
Take away a userโs Auditor authority within a group.
๐ฅ Parameters
userid
The z/OS userid of the user to take Auditor authority away from within a group.group
The group to take away the userโs Auditor in.
๐ค Returns
Union[dict, bytes]
Returns a Security Result Steps dictionary or Concatenated Security Request XML bytes if theConnectionAdmin.generate_requests_only
class attribute is set toTrue
.
โ 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 UserAdmin
>>> user_admin = UserAdmin()
>>> connection_admin.take_away_group_auditor_authority("squidwrd", "testgrp0")
{'step1': {'securityResult': {'groupConnection': {'name': 'SQUIDWRD', 'group': 'TESTGRP0', 'operation': 'set', 'requestId': 'ConnectionRequest', 'commands': [{'safReturnCode': 0, 'returnCode': 0, 'reasonCode': 0, 'image': 'CONNECT SQUIDWRD GROUP (TESTGRP0) NOAUDITOR '}]}, 'returnCode': 0, 'reasonCode': 0, 'runningUserid': 'testuser'}}}
Security Result Steps Dictionary as JSON
{
"step1": {
"securityResult": {
"groupConnection": {
"name": "SQUIDWRD",
"group": "TESTGRP0",
"operation": "set",
"requestId": "ConnectionRequest",
"commands": [
{
"safReturnCode": 0,
"returnCode": 0,
"reasonCode": 0,
"image": "CONNECT SQUIDWRD GROUP (TESTGRP0) NOAUDITOR "
}
]
},
"returnCode": 0,
"reasonCode": 0
}
}
}