Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

error "The query parameter 'username' is not supported in GDPR strict mode"

Hi ! 

 

We have a workflow that does the following: 

1- query the user infos of a certain email address (example; https://ID.atlassian.net/rest/api/2/user/search?username=name.lastname@ID.com)

2- Parse the response and put the accountID into a variable

3- Use that variable to create an issue. 

 

Now all this doesn't work anymore cause if the error: error "The query parameter 'username' is not supported in GDPR strict mode". The configuration in Global Admin > General Settings for e-mail visibility settings doesn't change a thing.

Do you guy know any solution to this ? how to create an issue with email? cause i tried "reporter":{"name":"name.lastname@ID.com"} and it came empty. ?

 

Thanks in advance for any idea ! 

1 answer

1 accepted

1 vote
Answer accepted

Hello @Khalil Ben Amor

Thank you for reaching out.

The error you are facing happens because of the implementation of the new European General Data Protection Regulation (GDPR), where the parameters used to identify users in REST API as "username" and "userKey" were replaced by the Atlassian account ID (accountId).

You can find more information regarding this change in the documentation below:

That being said, you must specify the accountId in the REST API to return the users of your Jira Cloud site:

GET /rest/api/3/user?accountId=xxxx

You can also search for the user's e-mail with the following API:

GET /rest/api/3/user/search?query=<e-mail>

To know the Account ID of multiple users by their usernames, you can use the experimental Endpoint below:

GET /rest/api/3/user/bulk/migration?username=xxxx&username=xxxxx

 Let us know if you have any questions.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Advanced Roadmaps

3 short videos to help you get started with Advanced Roadmaps

Hi community, I’m Roi, a product manager working on Advanced Roadmaps for Jira. While Advanced Roadmaps is a powerful tool to plan and track work at scale, we know it can be challenging to get star...

6,618 views 25 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you