zenpy icon indicating copy to clipboard operation
zenpy copied to clipboard

zenpy_client.users.organizations() returning a Organization object instead a ResultGenerator

Open lowliet64 opened this issue 2 years ago • 1 comments

Hello , i'm trying to list all organizando of a user , in docs is showed a example like this

for organization in  zenpy_client.users.organizations(user=1916242080765):
        print (organization.name)

but when i try to run , a take this error:

    for organization in  zenpy_client.users.organizations(user=requester.id):
        TypeError: 'Organization' object is not iterable

lowliet64 avatar Jan 21 '22 11:01 lowliet64

It does not appear at this zendesk api library supports associating a user with multiple organizations.

sudomoke avatar Mar 23 '22 10:03 sudomoke