async def _extract_cloud_id(access_token: str) -> str:
        """Extract the Atlassian Cloud ID from OAuth 2.0 accessible-resources."""
        logger.info("Extracting Atlassian Cloud ID")
        try:
            resources = await JiraSource._get_accessible_resources(access_token)

            if not resources:
                logger.warning("No accessible resources found")
                return ""

            # Use the first available resource
            resource = resources[0]
            cloud_id = resource.get("id", "")

            if not cloud_id:
                logger.warning("Missing ID in accessible resources")
            else:
                logger.info(f"Successfully extracted cloud ID: {cloud_id}")
            return cloud_id

        except Exception as e:
            logger.error(f"Error extracting cloud ID: {str(e)}")
            return ""
Extract the Atlassian Cloud ID from OAuth 2.0 accessible-resources.
backend/airweave/platform/sources/jira.py