WorkMail / Client / disassociate_member_from_group

disassociate_member_from_group#

WorkMail.Client.disassociate_member_from_group(**kwargs)#

Removes a member from a group.

See also: AWS API Documentation

Request Syntax

response = client.disassociate_member_from_group(
    OrganizationId='string',
    GroupId='string',
    MemberId='string'
)
Parameters:
  • OrganizationId (string) –

    [REQUIRED]

    The identifier for the organization under which the group exists.

  • GroupId (string) –

    [REQUIRED]

    The identifier for the group from which members are removed.

    The identifier can accept GroupId, Groupname, or email. The following identity formats are available:

    • Group ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

    • Email address: group@domain.tld

    • Group name: group

  • MemberId (string) –

    [REQUIRED]

    The identifier for the member to be removed from the group.

    The member ID can accept UserID or GroupId, Username or Groupname, or email.

    • Member ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

    • Email address: member@domain.tld

    • Member name: member

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • WorkMail.Client.exceptions.DirectoryServiceAuthenticationFailedException

  • WorkMail.Client.exceptions.DirectoryUnavailableException

  • WorkMail.Client.exceptions.EntityNotFoundException

  • WorkMail.Client.exceptions.EntityStateException

  • WorkMail.Client.exceptions.InvalidParameterException

  • WorkMail.Client.exceptions.OrganizationNotFoundException

  • WorkMail.Client.exceptions.OrganizationStateException

  • WorkMail.Client.exceptions.UnsupportedOperationException