Hello!
I am a developer in commercial company. One of our java applications uses zendesk-java-client, version:0.5.5.
The business logic I faced with problem in is that I need to create zendesk users with different organizations id.
During user creation in zendesk it is possible to set only one default organization 1 to this user. So after user creation I create new organization membership with organization 2 for that user with request:
"POST" ,"/organization_memberships.json"
and after that I have different results. Some requests pass as expected and users have two organizations in zendesk. But for majority requests for organization_memberships creation it doesn't work. Application logs show that request returns created entity of organization membership with set id. But in zendesk users have one organization 1. And request
GET /api/v2/organization_memberships/{organization_membership_id}
with organization_membership_id taken from application logs returns
{"error":"RecordNotFound","description":"Not found"}
Please provide support to understand the root cause.