describe_group
¶
describe_group(
directory_id: DirectoryId,
sam_account_name: GroupName,
*,
config_overrides: Optional[DirectoryServiceDataClientConfig] = None,
realm: Optional[Realm] = None,
other_attributes: Optional[LdapDisplayNameList] = None,
) -> DescribeGroupResult
Returns information about a specific group.
Parameters:
-
directory_id(DirectoryId) –The Identifier (ID) of the directory associated with the group.
-
realm(Optional[Realm], default:None) –The domain name that's associated with the group.
This parameter is optional, so you can return groups outside of your Managed Microsoft AD domain. When no value is defined, only your Managed Microsoft AD groups are returned.
This value is case insensitive.
-
sam_account_name(GroupName) –The name of the group.
-
other_attributes(Optional[LdapDisplayNameList], default:None) –One or more attributes to be returned for the group. For a list of supported attributes, see Directory Service Data Attributes.
Raises:
-
AccessDeniedException–You don't have permission to perform the request or access the directory. It can also occur when the
DirectoryIddoesn't exist or the user, member, or group might be outside of your organizational unit (OU).Make sure that you have the authentication and authorization to perform the action. Review the directory information in the request, and make sure that the object isn't outside of your OU.
-
DirectoryUnavailableException–The request could not be completed due to a problem in the configuration or current state of the specified directory.
-
InternalServerException–The operation didn't succeed because an internal error occurred. Try again later.
-
ResourceNotFoundException–The resource couldn't be found.
-
ThrottlingException–The limit on the number of requests per second has been exceeded.
-
ValidationException–The request isn't valid. Review the details in the error message to update the invalid parameters or values in your request.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To return the attributes of a group The following command returns the mapped attributes for a group along with the display name, description, and GUID for the group.
>>> client.describe_group(directory_id='d-12233abcde', other_attributes=['displayName', 'description', 'objectGUID'], realm='example.domain.com', sam_account_name='DevOpsMail')
Source code in docs_src/capo_directory_service_data/_services/directory_service_data.py
607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 | |