I am unable to deploy "Atlassian Confluence Audit (via Codeless Connector Platform)"data connector on Azure Sentinel.
Getting following error message:
Connectivity check failed. ConnectorId: ConfluenceAuditCCPPolling028dnd73-dj72-8dh3-8d73-10923373uenc, Status code:Unauthorized, Message:Call failed with status code 401 (Unauthorized): GET https://companyname.atlassian.net/wiki/rest/api/audit?startDate=1762495505090&endDate=176249580%E2%80%A6
I have created a service account on admin.atlassian.net. I have given service account "App Admin" permission to Confluence and Jira. I have also created an API Token on the service account and granted it read:audit-log:jira/read:audit-log:conflence scope.
When I go to "Atlassian Confluence Audit (via Codeless Connector Platform)" data connector on Azure Sentinel and click on add organization, it asks for 3 details - organization url, service account email, and API Token. I am providing these details and made sure that service account have correct permission but I am still getting the error message that I have shared above.
Can someone please advise.
Hi @Hasan Fakher ,
The 401 Unauthorized on the audit log endpoint (/wiki/rest/api/audit) is almost always a scope or permission problem.
The Atlassian Confluence Audit (Codeless Connector) connector uses the old v1 audit log API (/wiki/rest/api/audit), and that endpoint does not respect the newer granular scopes like read:audit-log:confluence. It only works with the classic scope VIEW_AUDIT_LOG (or being a full Site Admin).
1) Use classic scopes (not granular) for the API token
When creating the API token for the service account:
2) Make sure the service account is Site Admin (or Org Admin will do)
The v1 audit endpoint still requires Site Admin rights in many cases, even with the classic scope.
3) This is optional but you can keep granular scopes for everything else
After regenerating the token with the classic VIEW_AUDIT_LOG scope (and confirming Site Admin), go back to Azure Sentinel → Data connectors → Atlassian Confluence Audit → Add organization → paste the new token → it should pass the connectivity check.
I hope everything works out well for you!
Best,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.