Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable email invitation for new users

Nicolás Santisteban October 6, 2021

I'm using the API /rest/api/2/user for create a bunch of users, since we are testing the availability of migrate our current project management tool to Jira I want to disable the option to send invitations to users so it doesn't send "test" invitation to our actual users, how can I acomplish that. Thanks

 

1 answer

1 accepted

1 vote
Answer accepted
Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2021

Hi @Nicolás Santisteban. Welcome to the Atlassian Community!

I was under the impression that you should explicitly specify to receive notifications and not the other way around. Are the users receiving it? You can use "notification": "false".

Something like:

curl --request POST \
--url 'https://your-domain.atlassian.net/rest/api/2/user' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"emailAddress": "mia@atlassian.com",
"displayName": "Mia Krystof",
"name": "",
"notification": "false"
}'
Nicolás Santisteban October 12, 2021

Hi! @Ivan Lima Thanks for your answer, in fact I don't want users to receive notifications because we keep doing test migrating lot of tickets from our current PM system. Tried with

"notification": "false"

and also with

"sendNotification": "false"

But both send the invitation to the user from the emailAddress field

Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 13, 2021

Hi @Nicolás Santisteban, you're right. I tested myself, and it's still sending emails. I looked at the Atlassian public issue tracker and found a bug related to this issue.

You can click "This affects my team" to increase the relevance and visibility of this bug and add yourself as a watcher to receive updates and notifications from now on.

Nicolás Santisteban October 13, 2021

Thanks again for your answer Ivan, already did what you recommend, and let's wait for a solution. Have a great day!

Like Ivan Lima likes this
Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 13, 2021

Sounds good. If this answer helped you, it would be great to mark it accepted to help other users find it ;)

Like Nicolás Santisteban likes this

Suggest an answer

Log in or Sign up to answer