Risotto wants to run this program. It calls tools that need your approval; the tools are listed and the source is shown in full. Approve to run it once as written, or deny to skip it.
Add people to an Okta group or remove them from it, by email.
The program may make each of these calls any number of times. A credential is substituted only when a request leaves the sandbox; the program never holds its value. Nothing has run yet; the result and the timeline show every call after it runs. It also reads through list_workday_workers, list_okta_group_members.
export default async function () {
const hires = await tools.list_workday_workers({
department: "Engineering",
hired_after: "2026-10-01",
});
const members = await tools.list_okta_group_members({ group: "Engineering" });
const missing = hires.filter((h) => !members.some((m) => m.email === h.email));
await tools.manage_okta_group_members({
group: "Engineering",
add: missing.map((h) => h.email),
});
return { added: missing.length };
}export default async function () { const hires = await tools.list_workday_workers({ department: "Engineering", hired_after: "2026-10-01", }); const members = await tools.list_okta_group_members({ group: "Engineering" }); const missing = hires.filter((h) => !members.some((m) => m.email === h.email)); await tools.manage_okta_group_members({ group: "Engineering", add: missing.map((h) => h.email), }); return { added: missing.length }; }