Git Product home page Git Product logo

Comments (8)

RvPr avatar RvPr commented on August 19, 2024 1

Hi. I see that the AppUserApiClient class has been deleted some time between Jan 31 and today. Could you please reopen this issue, and clarify if this feature will be implemented in the SDK, at some point in the coming month?

from okta-sdk-java.

msamm-r7 avatar msamm-r7 commented on August 19, 2024

i'm currently doing this as part of some work i'm undertaking. i've cloned and branched.

from okta-sdk-java.

rmanga7 avatar rmanga7 commented on August 19, 2024

Hi,
is this feature has been implemented ?

Thanks

from okta-sdk-java.

jmelberg-okta avatar jmelberg-okta commented on August 19, 2024

@gantzm: This is possible using the AppUserApiClient class. For example,

import com.okta.sdk.framework.ApiClientConfiguration;
import com.okta.sdk.models.apps.AppUser;
import com.okta.sdk.clients.AppUserApiClient;


ApiClientConfiguration oktaSettings = new ApiClientConfiguration(
                "https://example.okta.com",
                "API_KEY");

AppUserApiClient appUserApiClient = new AppUserApiClient(oktaSettings);

// Assign user by ID to app by ID
AppUser appUser = appUserApiClient.createAppUser("appId", "userId");

from okta-sdk-java.

johnbhurst avatar johnbhurst commented on August 19, 2024

Seems that this issue still exists as of 1.3.0 (October 2018).

I cannot find a way to assign a user to an application using the Java API.

Any update?

from okta-sdk-java.

bdemers avatar bdemers commented on August 19, 2024

It should be:

 client.getApplication("your-app-id").assignUserToApplication(appUser)

Here is an example in a test (groovy)
https://github.com/okta/okta-sdk-java/blob/master/integration-tests/src/test/groovy/com/okta/sdk/tests/it/ApplicationsIT.groovy#L484-L491

from okta-sdk-java.

johnbhurst avatar johnbhurst commented on August 19, 2024

Thanks so much!

I was trying to do something like that, but could not figure out how to create a new AppUser. Being new to the API, I missed the client.instantiate() method.

Now that I looked again, there are plenty of examples of that on the GitHub main page.

from okta-sdk-java.

bdemers avatar bdemers commented on August 19, 2024

@johnbhurst thanks for the follow up!

from okta-sdk-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.