From ef821a6902b722687e882fa50c663f37d5121664 Mon Sep 17 00:00:00 2001 From: Laura Beatris <48022589+LauraBeatris@users.noreply.github.com> Date: Sun, 10 Dec 2023 16:57:41 -0300 Subject: [PATCH] Fix `list_groups` params --- lib/workos/directory_sync.ex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/workos/directory_sync.ex b/lib/workos/directory_sync.ex index f4c8c8d..691b49b 100644 --- a/lib/workos/directory_sync.ex +++ b/lib/workos/directory_sync.ex @@ -181,9 +181,8 @@ defmodule WorkOS.DirectorySync do def list_groups(opts \\ %{}) do WorkOS.Client.get(WorkOS.client(), WorkOS.List.of(Group), "/directory_groups", query: [ - domain: opts[:domain], - organization_id: opts[:organization_id], - search: opts[:search], + directory: opts[:directory], + user: opts[:user], limit: opts[:limit], before: opts[:before], after: opts[:after],