How Datadog’s IT team automated account inactivity and SaaS spend management
Datadog extended its Clarity tool into Clarity License Manager, a set of Python AWS Lambda microservices backed by Postgres on RDS. It tracks per-app user activity from SaaS APIs and Google Workspace SAML audit logs, warns inactive users via Slack, and auto-deactivates accounts after a configurable threshold (default 90 days). Each SaaS app is integrated through a shared adapter/interface (get_users, get_last_activity_data, deactivate_user, activate_user) with YAML config for thresholds, notification counts and custom activity definitions, such as Zoom Pro usage. Accounts are restored in seconds through a Freshservice ticket, and the team chose to build rather than buy over concerns about privileged access, privacy, per-seat cost and limited customizability.
Related posts
- How Datadog’s IT team automated monitoring third-party accounts
Datadog Engineering mediumAdeptClarity is an internal tool that audits accounts in SaaS apps like Slack, GitHub, Zoom and Google Workspace against Workday, the HR source of truth, and flags any account that doesn't match an active employee. A scheduled CloudWatch rule triggers an AWS Lambda each weekday morning. It compares user email lists across apps and emits tagged Datadog gauge and count metrics plus faceted logs per account. It then opens Freshservice tickets and posts Slack Block Kit summaries that link to prefiltered logs. DynamoDB stores state between runs so flagged accounts keep a history and get re-ticketed if they remain unresolved past the SLA.
- Security Disclosure Recommendation: Check for Anomalous AWS Access
Railway mediumAdeptIf an AWS access key used with Railway may have been exposed, deactivate it, replace it, redeploy, and audit what it did. Create a second key on the IAM user and deactivate the old one rather than deleting it, so it can be briefly reactivated if a forgotten service breaks. Update the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY variables on Railway (or the shared variable once) and confirm the new deployment shows no InvalidClientTokenId or SignatureDoesNotMatch errors. Then search CloudTrail event history by access key in every Region for calls like RunInstances, CreateUser or PutBucketPolicy, check the IAM credential report and Cost Explorer, and delete attacker-created resources after snapshotting what you need for forensics.
- What's New in Managed Deep Agents: schedules, per-run configuration, and Slack reactions
LangChain mediumAdeptManaged Deep Agents v0.9 adds three features: a Schedules SDK, per-run agent configuration, and Slack reactions. With the Schedules SDK, agents can create cron or one-time schedules mid-conversation; these run with the requesting user's permissions and post results back to the originating channel. Per-run configuration makes the agent a callable that reads the run context and returns a define_deep_agent definition, so one deployment can choose its model, skills, MCP servers and sandbox per team or repo before the model runs, which keeps context small and acts as access control. Slack reactions acknowledge incoming messages with a configurable emoji, including one picked per message by a function. The release is in public beta.
- Designing MCP tools for agents: Lessons from building Datadog’s MCP server
Datadog Engineering mediumAdeptThin API wrappers make poor MCP tools: agents flood their context windows, blow token budgets on oversized records, and infer trends from raw samples. Datadog's MCP server fixes this with token-efficient formats (CSV/TSV for flat data, YAML for nested), trimmed default fields, and pagination by token budget instead of record count, fitting about 5x more records per token. It also exposes a SQL query interface over logs, which made eval runs about 40% cheaper. Other lessons: keep tool count low with flexible tools, opt-in toolsets or layering; return specific, actionable error messages; offer a RAG docs-search tool; and include guidance hints in tool results.
- How Snyk Turned an Internal Support Agent into a Customer Feature
LangChain mediumAdeptSnyk Assist, a LangGraph-based conversational agent, grew from an internal support triage tool into a feature in the core Snyk product, keeping one agent runtime behind Slack, web and API surfaces. Tools are typed functions attached per request based on the signed-in user's permissions, so the agent only sees data the user already can. Middleware handles guardrails and model fallbacks, and conversation state is checkpointed in PostgreSQL. Every change is gated in CI by LangSmith offline evals (LLM-graded known answers plus automated red-teaming), and production runs are graded online to measure deflection. Since April 2026 it has handled 60,000+ queries, with 85%+ of sessions resolved without a support ticket.