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

User Management REST API is not working on some Organizations

      Issue Summary

      The User Management REST API is not working on some Orgs. 

      Steps to Reproduce

      1. Generate an admin API key following these steps, on an Org you are an admin.
      2. Try to call any of the endpoints listed in the User Management REST API.

      Expected Results

      The user should be able to use the API as expected.

      Actual Results

      The API returns below error:

      {"key":"forbidden.insufficientScope","context":{"message":"Insufficient scope for this action","acceptableScopes":
      ["manage:org","manage:me:DUMMYSCOPE"]},
      "errorKey":"forbidden.insufficient-scope","errorDetail":{"message":"Insufficient scope for this action","acceptableScopes"
      ["manage:org","manage:me:DUMMYSCOPE"]}} 

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available.

            [ACCESS-987] User Management REST API is not working on some Organizations

            Hi everyone, Happy Friday!

            We were also able to fix the API keys that were affected by this bug, and therefore I'm closing it.
            In case you are still facing any issues to use the API as expected, please, don't hesitate to reach to us at https://support.atlassian.com/contact.

            Kind regards and have a great weekend!
            Stay safe.
            Vitor Á.
            Atlassian Cloud Support

            Build a cloud app with forge: https://www.atlassian.com/forge

            Vitor A (Inactive) added a comment - Hi everyone, Happy Friday! We were also able to fix the API keys that were affected by this bug, and therefore I'm closing it. In case you are still facing any issues to use the API as expected, please, don't hesitate to reach to us at https://support.atlassian.com/contact . Kind regards and have a great weekend! Stay safe. Vitor Á. Atlassian Cloud Support Build a cloud app with forge: https://www.atlassian.com/forge

            alexander.kolodziej671272250,

            No worries! I'm glad that you were able to identify the reason and fix the issue. Count on us if you need any help.

            Vitor A (Inactive) added a comment - alexander.kolodziej671272250 , No worries! I'm glad that you were able to identify the reason and fix the issue. Count on us if you need any help.

            Vitor, in the end it was a tyop on my part, sorry about that! Everything works fine now

            Alexander Kolodziej added a comment - Vitor, in the end it was a tyop on my part, sorry about that! Everything works fine now

            Hi alexander.kolodziej671272250,

            Support tickets are restricted and only the reporter, participants and Support would have access to.  

            Vitor A (Inactive) added a comment - Hi alexander.kolodziej671272250 , Support tickets are restricted and only the reporter, participants and Support would have access to.  

            Hi Vitor!

            Will do! Those tickets are not public, right?

              wbr / Alex

            Alexander Kolodziej added a comment - Hi Vitor! Will do! Those tickets are not public, right?   wbr / Alex

            Hi alexander.kolodziej671272250,

            Thanks for sharing! I just tested on my side, and I'm able to use the APIs you have shared, creating a new API key. In case you are still unable to use them, would you mind to raise a ticket to us at https://support.atlassian.com/contact ?

            That way we can take a closer look on what may be happening.

            Kind regards,
            Stay safe!
            Vitor Á.
            Atlassian Cloud Support

            Build a cloud app with forge: https://www.atlassian.com/forge

            Vitor A (Inactive) added a comment - Hi alexander.kolodziej671272250 , Thanks for sharing! I just tested on my side, and I'm able to use the APIs you have shared, creating a new API key. In case you are still unable to use them, would you mind to raise a ticket to us at https://support.atlassian.com/contact  ? That way we can take a closer look on what may be happening. Kind regards, Stay safe! Vitor Á. Atlassian Cloud Support Build a cloud app with forge: https://www.atlassian.com/forge

            Alexander Kolodziej added a comment - same with getting their profile according to  https://developer.atlassian.com/cloud/admin/user-management/rest/api-group-users/#api-users-account-id-manage-profile-get

            Alexander Kolodziej added a comment - - edited

            arghh, spoke too soon.

            disabling users works, but fetching their api keys fails

            https://api.atlassian.com/users/$user_id/manage/api-tokens  -->  {"code":401,"message":"Unauthorized"}

            Alexander Kolodziej added a comment - - edited arghh, spoke too soon. disabling users works, but fetching their api keys fails https://api.atlassian.com/users/$user_id/manage/api-tokens   -->  {"code":401,"message":"Unauthorized"}

            nice, works fine!

            Alexander Kolodziej added a comment - nice, works fine!

            Bulk deactivation is now working for us too. After generating new API token I was able to bulk deactivate multiple users via the API. Thanks for resolving this issue!

            Ivan Shtanichev added a comment - Bulk deactivation is now working for us too. After generating new API token I was able to bulk deactivate multiple users via the API. Thanks for resolving this issue!

              edc026a7b429 Vitor A (Inactive)
              edc026a7b429 Vitor A (Inactive)
              Affected customers:
              10 This affects my team
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: