Group Special Authority
Group Connection Administration functions for modifying a user’s Group Special Authority.
GroupAdmin.give_group_special_authority()
def give_group_special_authority(self, userid: str, group: str) -> Union[dict, bytes]:
📄 Description
Having RACF Special authority is analogous to having Root authority on Linux.
Give a user RACF Special authority within a group.
📥 Parameters
userid
The z/OS userid of the user to give RACF Special authority to within a group.group
The group to give the user RACF Special 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_special_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) SPECIAL '}]}, '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) SPECIAL "
}
]
},
"returnCode": 0,
"reasonCode": 0
}
}
}
GroupAdmin.take_away_group_special_authority()
def take_away_group_special_authority(self, userid: str, group: str) -> Union[dict, bytes]:
📄 Description
Having RACF Special authority is analogous to having Root authority on Linux.
Take away a user’s RACF Special authority within a group.
📥 Parameters
userid
The z/OS userid of the user to take RACF Special authority away from within a group.group
The group to take away the user’s RACF Special 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_special_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) NOSPECIAL '}]}, '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) NOSPECIAL "
}
]
},
"returnCode": 0,
"reasonCode": 0
}
}
}