How to avoid sending invitation emails with the Create User Rest API

Sakaguchi Jinichi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 13, 2025

Hello.

I am currently learning about the Rest API for Jira Cloud. In the process, I was wondering if there is a way to avoid sending invitation emails when creating users using the Rest API.

When inviting a user from the Users list page, I believe it is possible to create a user without sending an email invitation by unchecking the Send email checkbox.

 

Create, edit, and delete users  

(Optional) If you don't want to send the Invite message, deselect Send email.

Isn't there such a setting in the Rest API?

Thank you in advance for your answer.

1 answer

1 accepted

1 vote
Answer accepted
Prachi Bolar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 13, 2025

Hello,

Welcome to the community : )

 

There's an option to customize the invitation email, but the options are only available when the user is invited from the User Management page.

I am afraid this option is not available while inviting the users using REST API.  below suggestion for  Developer review:

ID-7713: Ability to customize invitation email when user invited/created via REST API

At this time, We do not have the option to disable the email notification triggered when creating users via Rest API. For other endpoints in the Jira API, we do have the option to set the "notifyUsers" paramter to false, however, the endpoint "/rest/api/3/user" does not support this parameter.

We do have an open feature request for this here: 

Thank You,

Prachi

 

 

Sakaguchi Jinichi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 13, 2025

Hi Prachi.

Thank you for your response.

As I thought, it is not possible to achieve this with Rest API... I am sorry to hear that.

Also, the link you sent me was very helpful.

Thank You,

Jinichi

Like Prachi Bolar likes this
Prachi Bolar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 13, 2025

Thank you Jinichi :) You can watch the link directly  so that you get all updates from the dev and product teams 

Like Sakaguchi Jinichi likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events