ListMailboxPermissions

class WorkMail.Paginator.ListMailboxPermissions
paginator = client.get_paginator('list_mailbox_permissions')
paginate(**kwargs)

Creates an iterator that will paginate through responses from WorkMail.Client.list_mailbox_permissions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    OrganizationId='string',
    EntityId='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • OrganizationId (string) --

    [REQUIRED]

    The identifier of the organization under which the user, group, or resource exists.

  • EntityId (string) --

    [REQUIRED]

    The identifier of the user, group, or resource for which to list mailbox permissions.

  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'Permissions': [
        {
            'GranteeId': 'string',
            'GranteeType': 'GROUP'|'USER',
            'PermissionValues': [
                'FULL_ACCESS'|'SEND_AS'|'SEND_ON_BEHALF',
            ]
        },
    ],

}

Response Structure

  • (dict) --

    • Permissions (list) --

      One page of the user, group, or resource mailbox permissions.

      • (dict) --

        Permission granted to a user, group, or resource to access a certain aspect of another user, group, or resource mailbox.

        • GranteeId (string) --

          The identifier of the user, group, or resource to which the permissions are granted.

        • GranteeType (string) --

          The type of user, group, or resource referred to in GranteeId.

        • PermissionValues (list) --

          The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.

          • (string) --