issue with creation of organization for user | Community
Skip to main content

issue with creation of organization for user

  • March 1, 2022
  • 2 replies
  • 0 views

Александр11

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.

2 replies

Greg29
  • March 1, 2022
Hi Александр! It's hard to say why this might work sometimes and might not at other times, as there could be any number of factors leading to an error. To that end, I'm going to create a private ticket so that I can get the account details with timeframes so that I can check our logs to see what went wrong. Talk to you soon!

Александр11


*redacted content and added to private ticket

- Greg from Zendesk