Setting up file servers and logical folders from a command line

You can use ConfigManager.exe from a Command Line Interface (CLI) to perform file server and logical folder operations.
Note: This operation, performed from a CLI, is intended primarily for system administrators working with customers in a cloud environment. Customers working in an on-premises installation environment can use the Configuration Manager utility to accomplish the same ends.

Adding, updating, deleting, activating or deactivating a file server

Use this command line syntax as string, for example:

Configmanager.exe -U:FS -action:FS -configuration:DEV -mode:edit -servername:TESTIDMSERVER2 -servertype:I -urlorpath:https://nlbawidmmdemo01.infor.com:9543/ca/

-addlpropsasjson:"[{"key":"authentication_mode", "value":6, "readonly":2},{"key":"use_tenant", "value":"true", "readonly":1},{"key":"use_single_idm_user_as_default", "value":"true", "readonly":1},{"key":"provisioned", "value":1, "readonly":1},{"key":"workstationlogin", "value":"xxxxxxxxxxx", "readonly":1},{"key":"map_entity_with_logial_folder", "value":"true", "readonly":1},{"key":"use_auth_service_name", "value":"true", "readonly":1},{"key":"auth_service_name", "value":"TEST_IDM_SERVER", "readonly":1}]"

where:

  • -action is where the command intended for. Where, FS is for File server.
  • -configuration is the configuration name.
  • -mode is an action that is specified as new, edit, activate, or deactivate.
  • -servername is the name of the file server.
  • -servertype is the type of server, where:
    • I is IDM server type
    • S is UNC server type
    • 3 is S3 server type
    • F is FTP server type
    • T is SFTP server type
    • W is Mongoose web service
    Note: The -servertype is required for adding or updating a file server.
  • -domainorhostname is an optional flag that is used to define the domain name or host name of the server.
  • -urlorpath is an optional flag that is used to define the URL or path of the server depending upon the server type.
  • -remoteserverordocid is an optional flag that is used to define the remote server name or the IDM Document ID depending on the server type.
  • -userid is an optional flag that is used to define the user name or id for the server.
  • -password is an optional flag used to set the server password.
  • -addlpropsasjson is an optional flag that is specified as other properties to store.
Note: The -addlpropsasjson is a string to pass as file server additional properties. These properties are different depending on server type.

Adding, updating, or deleting a file server logical folder

Use this command line syntax as a string, for example:

Configmanager.exe -U:FS -action:LF -configuration:DEV -mode:new -servername:TESTIDMSERVER2 -logicalfoldername:TESTIDMLOGICALFOLDER -foldertemplate:/private/ -folderaccessdepth:5 -attacheddocumenttype:MG_TestIDMServer

where:

  • -action is where the command is intended for. Where, LF is for logical folder.
  • -mode is an action that is specified as new or edit.
  • -configuration is the configuration name.
  • -servername is the name of the file server.
  • -logicalfoldername is the name of the logical folder.
  • -foldertemplate is an optional flag used to define the template path with a default value of \.
  • -folderaccessdepth is an optional flag used to define the access depth of the folder with a default value of 10.
  • -attacheddocumenttype is an optional flag that is used to define the IDM document type.

Authorizing logical folder for a group using CLI

Use this command line syntax as a string, for example:

Configmanager.exe -U:FS -action:AUTH -configuration:DEV -mode:new -logicalfoldername:TESTIDMLOGICALFOLDER -groupname:my group -read:true -write:true -delete:false

where:

  • -action is AUTH or AUTHORIZE.
  • -mode is an optional flag that is used to define an action that is specified as new or edit.
  • -configuration is the configuration name.
  • -logicalfoldername is the name of the logical folder.
  • -groupname is the name of the group.
  • -read is an optional flag that is used to set a read permission and is specified as true or false.
  • -write is an optional flag that is used to set a write permission and is specified as true or false.
  • -delete is an optional flag that is used to set a delete permission and is specified as true or false.