Open
Conversation
…t, list, create, update, and delete actions for user management. Tests implemented for methods in UserManagementService
…. Created unit tests for new methods in service.
…ment in the UserManagementService. Added unit test for each new method.
…ppropriate unit tests.
…s to strongly type the full response object, and associated unit test.
Greptile OverviewGreptile SummaryThis PR implements comprehensive User Management functionality for the WorkOS .NET SDK, following the established patterns used throughout the codebase.
The implementation correctly follows the SDK's existing architectural patterns, including proper use of Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Client as Client App
participant SDK as UserManagementService
participant API as WorkOS API
rect rgb(230, 245, 255)
Note over Client, API: Authentication with Code Flow
Client->>SDK: AuthenticateWithCode(options)
SDK->>API: POST /user_management/authenticate
API-->>SDK: AuthenticationResponse
SDK-->>Client: User + Access/Refresh Tokens
end
rect rgb(255, 245, 230)
Note over Client, API: Token Refresh Flow
Client->>SDK: AuthenticateWithRefreshToken(options)
SDK->>API: POST /user_management/authenticate
API-->>SDK: AuthenticationResponse
SDK-->>Client: User + New Tokens
end
rect rgb(245, 255, 230)
Note over Client, API: User Management Operations
Client->>SDK: CreateUser/GetUser/UpdateUser/DeleteUser
SDK->>API: POST/GET/PUT/DELETE /user_management/users
API-->>SDK: User Response
SDK-->>Client: User Entity
end
rect rgb(255, 230, 245)
Note over Client, API: Organization Membership
Client->>SDK: Create/Get/Update/Delete OrganizationMembership
SDK->>API: POST/GET/PUT/DELETE /user_management/organization_memberships
API-->>SDK: OrganizationMembership Response
SDK-->>Client: OrganizationMembership Entity
end
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implement User Management for the dotnet SDK. This is a direct implementation of the WorkOS APIs per the public documentation following the patterns used elsewhere in this SDK.
Includes support for the following User Management capabilities:
There are additional capabilities that can and should be implemented in follow up PRs. These are all the capabilities I implemented internally to support migrating an application to WorkOS.
Documentation
Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.
If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.