Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to change identity attribute #32

Open
sirio81 opened this issue Nov 8, 2020 · 0 comments
Open

Unable to change identity attribute #32

sirio81 opened this issue Nov 8, 2020 · 0 comments

Comments

@sirio81
Copy link

sirio81 commented Nov 8, 2020

Hi, I'm not sure this is a bug but I can't figure out what's wrong.
I run this request to change zimbraPrefFromDisplay of an identity.
I get no error but an empty response and that sounds good.

{'identity': {'a': [{'_content': '577c5a8e-3bcc-4251-a8ed-6ec6abb08737',
                     'name': 'zimbraPrefDefaultSignatureId'},
                    {'zimbraPrefFromDisplay': 'New Fancy Name'}],
              'name': 'zorro'}}

{'ModifyIdentityResponse': {}}

If I check the identity, zimbraPrefFromDisplay didn't change.

The api request syntax is this:

<ModifyMailboxMetadataRequest> ## ModifyMailboxMetadataRequest <meta [section="{section}"]> ## MailCustomMetadata (<a n="{key}">{value}</a> ## KeyValuePair)* </meta> </ModifyMailboxMetadataRequest>

Notice you could pass more attributes (tag ) so my request has a list of attributes with a single element.

My code:

request = comm.gen_request(token=usr_token)
d = {'identity':{
        'name': 'zorro',
        'a': [{'name': 'zimbraPrefDefaultSignatureId', '_content': '577c5a8e-3bcc-4251-a8ed-6ec6abb08737'},
                {'zimbraPrefFromDisplay': 'New Fancy Name'}
                ]
        }
    }
pprint(d)
request.add_request(
    'ModifyIdentityRequest',
    d,
    'urn:zimbraAccount'
)

Any idea or suggestion for debugging?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant