Uploaded image for project: 'Identity'
  1. Identity
  2. ID-248

Unable to update username using JIRA REST API in Cloud

      Summary
      Unable to update username using JIRA REST API in Cloud

      Steps to reproduce

      • Send https:// {instance_URL}

        /rest/api/2/user?username=

        {username that you want to modify}
      • JSON: { "name": "test" }
      • It will produce the error like below:
        {
            "errorMessages": [
                "This user can not be renamed because that operation is unsupported by the underlying user directory or JIRA is acting as a Crowd Server."
            ],
            "errors": {}
        }
        

      Expected Behaviour
      Based on this documentation https://docs.atlassian.com/jira/REST/ondemand/#d2e5367 , we should be able to modify the username in Cloud.

      Affects Versions

      • 6.5-OD-08-001

            [ID-248] Unable to update username using JIRA REST API in Cloud

            Adarsh added a comment -

            marion.knopp -  This issue is linked to  https://jira.atlassian.com/browse/JRACLOUD-66936 and the issue is resolved. Also, please be aware of major changes coming to Jira REST API's. You can find more about it here - https://developer.atlassian.com/cloud/jira/platform/api-changes-for-user-privacy-announcement/

             

            Adarsh added a comment - marion.knopp -  This issue is linked to   https://jira.atlassian.com/browse/JRACLOUD-66936  and the issue is resolved. Also, please be aware of major changes coming to Jira REST API's. You can find more about it here - https://developer.atlassian.com/cloud/jira/platform/api-changes-for-user-privacy-announcement/  

            asridhara  Since this is resolved as 'tracked elsewhere' - could you add the information where it is tracked?

            Marion Knopp added a comment - asridhara   Since this is resolved as 'tracked elsewhere' - could you add the information where it is tracked?

            This issue exists for JIRA cloud, should have worked as per documentation https://docs.atlassian.com/jira/REST/ondemand/#api/2/user-updateUser

            Samiran Ghosh added a comment - This issue exists for JIRA cloud, should have worked as per documentation https://docs.atlassian.com/jira/REST/ondemand/#api/2/user-updateUser

            I'm also experiencing the issue described above.

            I also noticed that if I pass the user's name into the REST API without modifying it...

            curl -X PUT --data '{ "name":"test" }' -H "Content-Type: application/json" https://<my instance>/rest/api/2/user?username=test

            I'll get an HTTP 200 and a JSON representation of the user is returned.

            Stephen Liddell added a comment - I'm also experiencing the issue described above. I also noticed that if I pass the user's name into the REST API without modifying it... curl -X PUT --data '{ "name" : "test" }' -H "Content-Type: application/json" https: //<my instance>/ rest /api/2/user?username=test I'll get an HTTP 200 and a JSON representation of the user is returned.

              Unassigned Unassigned
              afajri Aulia Fajri (Inactive)
              Affected customers:
              10 This affects my team
              Watchers:
              17 Start watching this issue

                Created:
                Updated:
                Resolved: