Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get user by id with memberships #137

Merged
merged 5 commits into from
May 19, 2024
Merged

Conversation

joshtyf
Copy link
Owner

@joshtyf joshtyf commented May 13, 2024

Description

The get user by id api now includes memberships.

Here's a sample json response:

{
  "user_id": "auth0|65ffab5c004e8d1620d06a64",
  "name": "Test User 1",
  "identity_provider": "auth0",
  "created_on": "2024-05-13T13:39:47.646388Z",
  "memberships": [
    {
      "org_id": 1,
      "role": "Owner",
      "joined_on": "2024-05-13T13:39:47.654307Z"
    }
  ]
}

@joshtyf joshtyf added backend Backend related feature A new feature labels May 13, 2024
@joshtyf joshtyf self-assigned this May 13, 2024
@joshtyf joshtyf linked an issue May 13, 2024 that may be closed by this pull request
Copy link
Collaborator

@Ziyang-98 Ziyang-98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

Copy link
Collaborator

@Zheng-Zhi-Qiang Zheng-Zhi-Qiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may want to think about if user is allowed to see other users' orgs, otherwise seems fine to me

@joshtyf joshtyf merged commit db6c32b into main May 19, 2024
2 checks passed
@joshtyf joshtyf deleted the refactor/upgrade-get-user-by-id-api branch May 19, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fetch user memberships
3 participants