0

I am trying to figure out how to search for users in Okta using the SDK and .net core in C#. outside of .net core I am able to do this using Okta.Core but that is not supported in .NET Core. I can't find any documentation for doing this stuff in .NetCore using the SDK.

I can get the OktaClient connected no problem with my API token but after that I am lost now.

Anyone have an example of doing this in Core or can point me in the right direction to get documentation from Okta?

Bigbacon
  • 19
  • 6

1 Answers1

0

Looking thought the Okta documentation I found the below code, where the client is the Okta client. Hopefully this helps:

Getting A User

    // have some user's ID, or login
    var someUserId = "<Some User ID String or Login>";

    // get the user with the ID or login
    var vader = await client.User.GetUserAsync(someUserId);
Kiran Rani
  • 154
  • 1
  • 9