Provide an API to rotate SCIM API keys programmatically using a service account

XMLWordPrintable

    • 1

      Problem definition

      SCIM API keys expire one year after they're created and can only be regenerated by hand in Atlassian Administration. There is no documented API for regenerating or rotating a SCIM directory key, and the SCIM key itself can't be used to rotate itself.

      Customers who manage credentials with automation (secrets vaults, scheduled rotation pipelines, IAM orchestration tools) can't include Atlassian SCIM keys in those workflows. As a result:

      • Rotation depends on a person remembering the expiry date and acting on it
      • Provisioning can break if the key expires unnoticed
      • Rotation can't follow the organization's own policy (for example, every 90 days)
      • A human organization admin has to do it, which conflicts with least-privilege goals

      Suggested solution

      Add an Admin REST API endpoint to rotate the SCIM API key for a given directory, which:

      • Can be called by a service account with a dedicated, narrow scope (for example, manage:directory-credentials), with no full organization admin rights needed
      • Returns the new key and its expiration date
      • Optionally supports a short overlap (grace period) where the old and new keys both work, so the identity provider can be updated without interrupting provisioning
      • Records rotation events in the organization audit log
      • Optionally exposes key expiration through the API (or webhooks/notifications) so automation can trigger rotation ahead of time

      Use case: an IAM team rotates every integration credential automatically from a central secrets manager and needs Atlassian SCIM keys to follow the same process.

      Workaround

      None for automation. An organization admin regenerates the key by hand (Atlassian Administration → Security → User security → Identity providers → [directory] → Regenerate API key) and updates the identity provider right away, because the previous key stops working immediately.

              Assignee:
              Unassigned
              Reporter:
              Paul Vargas
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: