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

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

    XMLWordPrintable

Details

    Description

      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

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: