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

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

      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

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

            No work has yet been logged on this issue.

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

                Created:
                Updated:
                Resolved: