...
- Get all users
- Get one/create/modify/delete user
- Verify email/phone with code or link (primary ones)
- Get/update/delete custom user fields (dictionary with any keys/values)
- Get/update user enterprise
- Get password requirements (min and max password length)
- Get user's legal info
- Migrate user to other namespace
- Change password
- Get/update custom permission
- Get/update builtin and custom roles
- Get/report strong identification
- Get/update student info
Initialize service
Code Block | ||
---|---|---|
| ||
TrivoreID sdk = TrivoreID.mgmtApiClient(); UserServiceImpl userService = new UserServiceImpl(sdk.userService()); |
...
Code Block | ||
---|---|---|
| ||
// this will return password requiremens for the namespace that user belongs to.
PasswordComplexity requirements = userService.getPasswordComplexity(userId); |
Migrate namespace
Code Block | ||
---|---|---|
| ||
// migrate user to another namespace
UserNamespaceMigrationOptions options = new UserNamespaceMigrationOptions();
options.setTargetNsCode("exampleNsCode");
options.setKeepEmails(false);
// this will create groups in the target namespace if they do not exist
options.setKeepGroups(true);
userService.migrateNamespace(userId, options); |
Legal info
Code Block | ||
---|---|---|
| ||
// Get the legal info of the user (legal info cannot be modified)
LegalInfo info = userService.getLegalInfo(userId); |
Student state
Code Block | ||
---|---|---|
| ||
// Get and update the user's student state info StudentStateInfo info = userService.getStudentInfo(userId); userService.updateStudentInfo(userId, info); |
User Service Models
/wiki/spaces/TISpubdoc/pages/20515245
/wiki/spaces/TISpubdoc/pages/20515276
Mobile/wiki/spaces/TISpubdoc/pages/20515253
/wiki/spaces/TISpubdoc/pages/20515254
/wiki/spaces/TISpubdoc/pages/20515250
...
/wiki/spaces/TISpubdoc/pages/20515252
/wiki/spaces/TISpubdoc/pages/75825224