Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-67680

POST /rest/api/2/user triggering email notification

XMLWordPrintable

      Summary

      A POST request to create user via REST API endpoint /rest/api/2/user will trigger an email notification, despite our documentation says:

      Create user. By default created user will not be notified with email. If password field is not set then password will be randomly generated.

      Doc reference: https://docs.atlassian.com/jira/REST/cloud/#api/2/user-createUser

      Steps to Reproduce

      Run the following cURL to create a sample user:

      curl -D- -u <email_address> -H "Content-Type: application/json" -X POST -d '{"displayName":"Name Here", "emailAddress":"email@here.com", "name":"username-here"}' https://<instance>.atlassian.net/rest/api/2/user

      Expected Results

      User is created without triggering notification.

      Actual Results

      The user is created and a notification is triggered.

              260eddc162d4 Thais Manfrin (Inactive)
              epereira@atlassian.com bpevandro (Inactive)
              Votes:
              19 Vote for this issue
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: