Skip to content

Add UserIdentityProvider and UserIdentityProviderType classes #274

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bradenkeith
Copy link
Contributor

Description

Add UserIdentityProvider and UserIdentityProviderType classes implement getUserIdentityProviders method in UserManagement class

  • Introduced UserIdentityProvider and UserIdentityProviderType classes to represent user identity providers and their types.
  • Added getUserIdentityProviders method in UserManagement to retrieve a user's identity providers.
  • Implemented unit tests for the new functionality in UserManagementTest.

Resolves #271

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[x ] Yes

https://workos.com/docs/reference/user-management/identity/list

Get user identities can be updated to have a PHP code sample now.

Request

<?php

WorkOS\WorkOS::setApiKey("sk_example_123456789");

$userManagement = new WorkOS\UserManagement();

$user = $userManagement->getUserIdentityProviders("user_01E4ZCR3C56J083X43JQXF3JK5");

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

…plement getUserIdentityProviders method in UserManagement class

- Introduced UserIdentityProvider and UserIdentityProviderType classes to represent user identity providers and their types.
- Added getUserIdentityProviders method in UserManagement to retrieve a user's identity providers.
- Implemented unit tests for the new functionality in UserManagementTest.

Resolves workos#271
@bradenkeith bradenkeith requested a review from a team as a code owner March 30, 2025 20:37
@bradenkeith bradenkeith requested a review from nicknisi March 30, 2025 20:37
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.

UserManager -> Get user identities
1 participant