Skip to content

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