Comments (2)
Hello Freeman,
I have managed this in the past using the following code:
private User createUserFromEmployee(Employee employee) {
User user = new User();
UserProfile userProfile = new UserProfile();
userProfile.setEmail(employee.getEmailAddress());
userProfile.setFirstName(employee.getFirstName());
userProfile.setLastName(employee.getLastName());
userProfile.setLogin(employee.getEmailAddress());
Map<String,Object> unmapped = userProfile.getUnmapped();
unmapped.put("employeeNumber", employee.getEmployeeNumber());
user.setProfile(userProfile);
return user;
}
Hope this helps,
Joe
from okta-sdk-java.
Hi Joe,
That worked! Appreciate the tip.
thanks,
Freeman
from okta-sdk-java.
Related Issues (20)
- Private Key is interpreted as PEMKeyPair instead of PrivateKeyInfo HOT 3
- Consistently thrown NoHttpResponseException's in 13.0.3 HOT 1
- UserApi#listUserGroups() doesn't support pagination HOT 3
- UserApi: listUserGroups() does not return more than 200 groups for a user HOT 1
- Null LinksSelf in VerifyUserFactorResponse HOT 1
- Missing "List groups assigned to application" HOT 5
- OAUTH_AUTHORIZATION_POLICY PolicyType missing in latest spec HOT 9
- With 14.0.0 the application id is always null upon create HOT 2
- ClassNotFoundException with current dependencies in Gradle build HOT 4
- Okta Verify Fast Pass as an enrolled Factor is not returned HOT 8
- UserProfile equals() does not return true when objects are equal HOT 1
- Upgrade to 13.0.2 causes updateUser API to fail from attribute being mastered by a different system HOT 8
- `IdentityProviderApi` cannot properly deserialize `/ipds` responses HOT 1
- Create authorization server policy with type OAUTH_AUTHORIZATION_POLICY get error HOT 3
- IdP Discovery Policy not returned in listPolicyRules() HOT 2
- GroupsAPI - Custom group profile attributes missing HOT 3
- Several outdated dependencies
- OpenAPI spec missing some default role type HOT 3
- Invalid session HOT 3
- IdpPolicyRuleActionProvider needs the ability to set the provider id to be useful for creating IDP Routing Rules HOT 3
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.