Group Access Attribute
Group Administration functions for checking a user’s Group Access Attribute.
GroupAdmin.has_group_access_attribute()
def has_group_access_attribute(self, group: str, userid: str) -> Union[bool, bytes]:
📄 Description
Check if a user has the Access Attribute within a group.
📥 Parameters
-
group
The group where the user’s Access Attribute is being checked. -
userid
The z/OS userid of the user whose Access Attribute is being checked.
📤 Returns
Union[bool,bytes]
ReturnsTruewhen the user has the Access Attribute within the specified group andFalseotherwise. If theGroupAdmin.generate_requests_onlyclass attribute is set toTrue, concatenated Security Request XML bytes will be returned.
❌ Raises
SecurityRequestError
RaisesSecurityRequestErrorwhen the SAF Return Code of a Security Result is equal to4.DownstreamFatalError
RaisesDownstreamFatalErrorwhen the SAF Return Code of a Security Result is greater than4.
💻 Example
Python REPL
>>> from pyracf import GroupAdmin
>>> group_admin = GroupAdmin()
>>> group_admin.has_group_access_attribute("testgrp0", "squidwrd")
False