Add mailing list owner

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
anold
Posts: 1
Joined: Tue Jun 29, 2021 2:31 pm

Add mailing list owner

Post by anold »

Hello!
How to add mailing list owner

Code: Select all

  def ModifyDistributionListRequest(self, *args, **kwargs):
        listinfo = self.getDistributionList(*args, **kwargs)
        response = self.request(
            'ModifyDistributionListRequest',
            {
                'id': listinfo['GetDistributionListResponse']['dl']['id'],
                'action': {
                    'op': 'addOwners',
                    'owner': {
                        'name': 'user@site.com',
                        'id': 'cb8159b7-9660-4157-9674-52050587a5c9',
                        'type': 'usr'
                    },
                },
            },
            "urn:zimbraAdmin"
        )
Post Reply