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]
    Returns True when the user has the Access Attribute within the specified group and False otherwise. If the GroupAdmin.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 GroupAdmin
>>> group_admin = GroupAdmin()
>>> group_admin.has_group_access_attribute("testgrp0", "squidwrd")
False