Uploaded image for project: 'Admin Experience'
  1. Admin Experience
  2. AX-633

Requests to Get Organizations Admin API endpoint returns authenticated response but not data

    • Minor

      Issue Summary

      We have a documented API endpoint "Get Organizations" that purportedly "Returns a list of your organizations (based on your API key)." However this doesn't make sense on a conceptual level because an API key is scoped to a single organization, so it shouldn't ever return more than one result.

      But it actually doesn't return any results. If you use a valid org API key, it returns a 200 response and no data (see screenshot)

      Steps to Reproduce

      1. Create an admin API key
      2. Make a request to https://api.atlassian.com/admin/v1/orgs with API key as bearer token
      3. Observe a 200 OK response with the following body:
      {"data":[],"links":{"self":"https://api.atlassian.com/admin/v1/orgs"},"meta":null} 

      Expected Results

      This endpoint should probably be removed from the documentation. Alternatively, it should return the metadata for a single organization (which implicitly duplicates the Get Org by ID endpoint) and the documentation should be updated accordingly.

       

      Actual Results

      See steps to reproduce.

      Workaround

      None

            [AX-633] Requests to Get Organizations Admin API endpoint returns authenticated response but not data

            Rodrigo B. made changes -
            Component/s Original: Admin API tokens/keys [ 54490 ]
            Component/s New: Org Management - Cloud Admin API keys [ 80136 ]
            Key Original: ACCESS-966 New: AX-633
            Project Original: Atlassian Guard [ 18910 ] New: Admin Experience [ 24210 ]
            Kat N made changes -
            Resolution New: Timed out [ 10 ]
            Status Original: Long Term Backlog [ 12073 ] New: Closed [ 6 ]
            Sangeeta Joglekar made changes -
            Status Original: Needs Triage [ 10030 ] New: Long Term Backlog [ 12073 ]
            Dave Meyer created issue -

              Unassigned Unassigned
              dmeyer Dave Meyer
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: