Uploaded image for project: 'Atlassian Guard'
  1. Atlassian Guard
  2. ACCESS-1619

Selective User Claim prevents accounts of being claimed

      Issue Summary

      Since the Selective User Claim feature has been released, we're seeing an increase of tickets where Organizations report that accounts that can't be claimed. Even though the domain has been verified. 

       

      These cases all have something in common, when uploading the CSV file to claim the account, the following response is returned:

      {
          "id": "958ccd87-622f-48a3-9c6f-44fa7ee25a8b",
          "status": "400",
          "code": "FILE-UPLOAD-009",
          "title": "Invalid file upload action",
          "detail": "There was an error while validating the file because [Invalid file upload action, expected = [FIRST_CLAIM,INCREMENTAL_CLAIM,INCREMENTAL_UNCLAIM,TRANSITION_TO_SUC_BY_UNCLAIM]]"
      }
      

      The above originates from the following request:

      https://admin.atlassian.com/gateway/api/admin/private/api/admin/v1/orgs/[ORGID]/domains/aspencore.com/operationTypes/TRANSITION_TO_SUC_BY_CLAIM/managed-accounts/users/upload-file/csv
      

       

      I believe this is caused by the SUC config file, in specific the attribute 'isSelectivelyClaimed' which finds itself in the wrong state:

      "config": {
         "shouldClaimAccountsByDefault":false,
         "isSelectivelyClaimed":true, // this flag
         "isUserAccountsFileUploaded":false,
         "domainMigrated":false
      }
      

       
      This can be resolved in most cases by simply toggling the Claim Setting from Auto to Manual and back to Auto.
       

      Steps to Reproduce

      Locate an Organization that is affected by the bug and try the following steps:

      1. Go to Domains > Click the 3 dots > Claim Accounts > Claim some accounts > upload the CSV file.
      2. Before hitting next, open your Developer Tools and go to Console. Here you'll notice if the response is returning an error on the CSV request. 

      Expected Results

      The Org Admins should receive a notification stating the account(s) got successfully claimed. The account should appear under Managed Accounts.

      Actual Results

      The account is not claimed and the following error appears on the response:

      { "id": "XXXX", "status": "400", "code": "FILE-UPLOAD-009", "title": "Invalid file upload action", "detail": "There was an error while validating the file because [Invalid file upload action, expected = [FIRST_CLAIM,INCREMENTAL_CLAIM,INCREMENTAL_UNCLAIM,TRANSITION_TO_SUC_BY_UNCLAIM]]" } 

      Workaround

      Toggle the Claim Setting from Auto to Manual and back to Auto. Or if the current setting is Manual, toggle from Manual to Auto back to Manual.

          Form Name

            [ACCESS-1619] Selective User Claim prevents accounts of being claimed

            There are no comments yet on this issue.

              0b58aa360b3b Emily Zou
              ea8de7b38038 Kenneth De Coster
              Affected customers:
              1 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: