...
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
User Service Models
/wiki/spaces/TISpubdoc/pages/20515245
...
/wiki/spaces/TISpubdoc/pages/20515252
/wiki/spaces/TISpubdoc/pages/75825224