Comments (8)
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.
i'm currently doing this as part of some work i'm undertaking. i've cloned and branched.
from okta-sdk-java.
Hi,
is this feature has been implemented ?
Thanks
from okta-sdk-java.
@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.
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.
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.
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.
@johnbhurst thanks for the follow up!
from okta-sdk-java.
Related Issues (20)
- Retry does not work for version 10 of the client. HOT 4
- Manage Group membership missing or moved in 10.2.2 HOT 5
- UserFactorApi.listFactors erases the profile data of the factor HOT 7
- Support revokeSessions for changing password HOT 4
- ReadMe example for enrolling factors has multiple errors. HOT 1
- Cannot update profile with array properties returned by user API HOT 7
- Add a way to get a PasswordPolicy without calling invokeApi manually. HOT 4
- Set Application Visibility is not functioning HOT 2
- Make openapi-generator deps as an Optional HOT 2
- Auto pagination causes throttling & memory problems for large result sets HOT 2
- GetFactorType() returning IllegalArgumentException HOT 10
- setCity method in the UserBuilder API sets the employeeNumber HOT 1
- Cannot get application subclass using ApplicationApi in 10.3 HOT 8
- GroupApi listGroupsWithPaginationInfo fails when q is specified HOT 2
- PolicyAPI listPolicies is not returning the conditions and settings attributes HOT 3
- DefaultClientBuilder can not be initialised if proxy does not have username HOT 1
- Support PRIVATE_KEY authorization mode with external JWT signing HOT 2
- ApiClient does not get a new access token when it expired. HOT 1
- Bring back Pagination in v11.0.0 HOT 3
- AccessTokenRetrieverServiceImpl.getOAuth2AccessToken throws "IllegalArgumentException: Illegal character in query" when more than one scope is present HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okta-sdk-java.