WAS v8.5 > Reference > Commands (wsadmin scripting)FileRegistryCommands command group for AdminTask
Federated repositories provides a file registry. Use FileRegistryCommands commands to administer the file registry.
If the "Use global security settings" option is selected for the user realm, or the "Global federated repositories" option is selected as the realm type for the domain, commands are executed on the federated repository of the admin domain. For example, if you run createUser for the specified domain, the user is created in the admin domain. However, configuration changes performed on the domain are applied to the security domain-specific configuration.
FileRegistryCommands...
addFileRegistryAccount command
Add an account to the file registry. Save configuration changes after running.
Target object None
Required parameters
-userId ID of the user to add to the file registry. (String, required) -password Password of the user to add to the file registry. (String, required) Optional parameters
-securityDomainName Name that uniquely identifies the security domain. If we do not specify this parameter, the command uses the global federated repository. (String, optional) -parent Parent of the entity. (String, optional) Returns a message that indicates the command ran successfully...
'CWWIM4544I Account newAcct(uid=newAcct,o=defaultWIMFileBasedRealm) is stored in the file registry in the temporary workspace. You must use the "$AdminConfig save" command to save it in the master repository.'
- Jython string:
AdminTask.addFileRegistryAccount('[-userId newAcct -password new22password]')
Interactive mode example usage
- Jython string:
AdminTask.addFileRegistryAccount(['-userId', 'newAcct', '-password', 'new22password'])
changeFileRegistryAccountPassword command
Change the password for the file registry account.
Target object None.
Required parameters
-userId User ID of interest. (String, required) -password New password. (String, required) Optional parameters
-securityDomainName Name that uniquely identifies the security domain. If we do not specify this parameter, the command uses the global federated repository. (String, optional) -uniqueName Fully-qualified unique name of the administrator. (String, optional) Returns a message indicating success...
'CWWIM4545I The password is changed for newAcct(uid=newAcct,o=defaultWIMFileBasedRealm) in the file registry in the temporary workspace. You must use the "$AdminConfig save" command to save it in the master repository.'
Jython string:
AdminTask.changeFileRegistryAccountPassword('[-userId newAcct -password newPassword -uniqueName uid=newAcct,o=defaultWIMFileBasedRealm]')
Jython string interactive mode
AdminTask.changeFileRegistryAccountPassword(['-userId', 'newAcct', '-password', 'newPassword', '-uniqueName', 'uid=newAcct,o=defaultWIMFileBasedRealm'])
Related concepts:
Federated repositories
Related
Configure a single built-in, file-based repository in a new configuration under federated repositories using wsadmin
Set up an entry mapping repository, a property extension repository, or a custom registry database repository using wsadmin commands
Reference:
IdMgrConfig command group for AdminTask
IdMgrRepositoryConfig command group for AdminTask