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

Using the create user endpoint with notification enabled sends and email with incorrect link

XMLWordPrintable

      If the create user endpoint /rest/api/3/user is used with the notification enabled it sends to the customer an email to reset the password, in case the user hasn't set a password yet. However, the link to reset password (https://yourinstance.atlassian.net/secure/ResetPassword.jspa) is leading to the instance instead of lead the customer to reset his password on id.atlassian.com. If the customer tries to reset the password on that link, it gets an error saying "This structure only supports synchronising".

      curl -u EMAIL:APItoken --request POST --url 'https://testinstance.atlassian.net/rest/api/3/user' --header 'Accept: application/json' --header 'Content-Type: application/json'  --data '{
         "name": "Charlie",
         "emailAddress": "charlie@atlassian.com",
         "displayName": "Charlie of Atlassian"
         "notification": "true"
      }'
      

      Summary

      Steps to Reproduce

      1. Use the create user API to sent to a user a notification to reset his password
      2. This call:
        • curl -u EMAIL:APItoken --request POST --url 'https://testinstance.atlassian.net/rest/api/3/user' --header 'Accept: application/json' --header 'Content-Type: application/json'  --data '{
             "name": "Charlie",
             "emailAddress": "charlie@atlassian.com",
             "displayName": "Charlie of Atlassian"
             "notification": "true"
          }'
          

      Expected Results

      The "set my password" present on the email should lead the user to id.atlassian.com

      Actual Results

      The link is going to the instance and the user gets an error

      Notes

      This happens if the user was created but didn't set the password through the invitation email and the endpoint is used to resent the "invitation email".

      Workaround

        1. error message.png
          error message.png
          87 kB
        2. notification email.png
          notification email.png
          143 kB

              Unassigned Unassigned
              lmenezes Lele (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: