list_groups_for_entity
async
¶
list_groups_for_entity(
organization_id: OrganizationId,
entity_id: EntityIdentifier,
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = None,
filters: Optional[ListGroupsForEntityFilters] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListGroupsForEntityResponse
Returns all the groups to which an entity belongs.
Parameters:
-
organization_id(OrganizationId) –The identifier for the organization under which the entity exists.
-
entity_id(EntityIdentifier) –The identifier for the entity.
The entity ID can accept UserId or GroupID, Username or Groupname, or email.
-
Entity ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234
-
Email address: [email protected]
-
Entity name: entity
-
-
filters(Optional[ListGroupsForEntityFilters], default:None) –Limit the search results based on the filter criteria.
-
next_token(Optional[NextToken], default:None) –The token to use to retrieve the next page of results. The first call does not contain any tokens.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in a single call.
Raises:
-
EntityNotFoundException–The identifier supplied for the user, group, or resource does not exist in your organization.
-
EntityStateException–You are performing an operation on a user, group, or resource that isn't in the expected state, such as trying to delete an active user.
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
OrganizationNotFoundException–An operation received a valid organization identifier that either doesn't belong or exist in the system.
-
OrganizationStateException–The organization must have a valid state to perform certain operations on the organization or its members.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workmail/_services/async_work_mail.py
3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 | |