Precursor: First off I want to say I’ve been working with BetterCloud support who have been awesome as always but we’re unable to find a resolution to this issue. I have successfully integrated Atlassian using a service account with the correct Admin rights.
Issue: I have been able to Create users, but not add some users to Atlassian groups. My goal is to create a workflow where if they get added to a specific Okta group, they’re put into the correct Atlassian group. When I try to add a user to an Atlassian group, it responds back with:
More than one user found for email 'user@mycompany.com' or email was not recognized. Please verify that email is correct
Â
I did some digging and confirmed via Postman that hitting the https://{base_domain_URL}.atlassian.net/rest/api/3/user/search?query={email}​ API with my service account I was able to get a response.
The problem is, I get 2 responses back:
- accountType: customer
email: user@mycompanny.com - accountType: atlassian
email: user@mycompany.com
We use Jira Service Desk and setup our users as customers in order to submit tickets. Atlassian added the accoutType preference to this query recently which is why it includes one email as both a customer & atlassian (actual user account).
When using the Adding/Removing user to group function for Atlassian, BetterCloud has not yet added the logic to parse this out when you get multiple responses.
I’m curious if other have run into this issue and/or have a workaround?