Skip to content

Add groups to directory sync user struct#59

Merged
PaulAsjes merged 3 commits into
workos:mainfrom
firezone:main
Aug 29, 2024
Merged

Add groups to directory sync user struct#59
PaulAsjes merged 3 commits into
workos:mainfrom
firezone:main

Conversation

@bmanifold
Copy link
Copy Markdown
Contributor

In looking through the WorkOS API docs, I noticed the response for directory sync users included groups nested within the user data. When attempting to use the workos-elixir package I ran in to an issue where I needed the group information for a user, however it wasn't part of the user struct.

This PR adds the groups info to the directory sync user struct.

Thank you for considering this PR and please let me know if I need to change/add anything.

bmanifold and others added 3 commits May 28, 2024 18:24
Why:

* When pulling the directory sync user data from the WorkOS API, the
  list of groups is not included in the user schema, even though it is
  included in the WorkOS API response.  This commit adds the list of
  groups associated with a given user to the directory sync user schema.
@jamilbk
Copy link
Copy Markdown

jamilbk commented Aug 29, 2024

Hi @marktran - would it be possible to get this upstreamed? We've been using this patch in production at firezone/firezone for about 2 months now with no issues.

@PaulAsjes PaulAsjes merged commit c4771b9 into workos:main Aug 29, 2024
@marktran
Copy link
Copy Markdown
Member

Thanks for the nudge, @jamilbk. We'll get this merged and publish a new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants