Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Can someone confirm whether or not there is command-line method for adding users to, and removing users from, a group?
If there is, can the syntax, an example, or reference to the documentation be provided, as well?
Kind regards,
-Sean
Hi Sean,
Sounds like you're looking for "integrity editmksdomaingroup".
If your man page help is working for your Integrity server, you can type:
man integrityeditmksdomaingroup
...to get more details.
(depending on the Integrity version you are on, you may still have the CLI command guide in PDF too to download from our site)
Quick copy-and-paste excerot here for you...
integrity editmksdomaingroup - edits an MKS Domain group
integrity editmksdomaingroup
edits an MKS Domain group
===========================================================================
SYNOPSIS
integrity editmksdomaingroup [--addMembers=value] [--description=value]
[--removeMembers=value] [--hostname=server] [--port=number]
[--password=password] [--user=name] [(-Ffile|--selectionFile=file)]
[(-?|--usage)] [(-N|--no)] [(-Y|--yes)] [--[no]batch] [--cwd=directory]
[--forceConfirm=[yes|no]] [(-g|--gui)] [--quiet]
[--settingsUI=[gui|default]] [--status=[none|gui|default]] group...
===========================================================================
DESCRIPTION
integrity editmksdomaingroup edits a group from the MKS Domain. The group
name is not editable....etc
Hi Michael,
Thank you for the reply. We may be on to something, but we'll need more to make this work.
Your suggestion works great where the Thick-Client tools are installed. Our challenge is to come up with a solution to help with the administration of groups without the need for the Integrity Thick-Client tool - in other wrods, performing group administration from the Web Client. Running the 'integrity' command currently does not work on the server side.
So, to rephrase my question:
Can someone confirm whether or not there is command-line method that runs on the server for adding users to, and removing users from, a group? The intention is to execute this command from a trigger/script so that it can be invoked from the Web Client to run on the server.
Kind regards,
-Sean
Hi Sean,
Something another of our customers has done is to create a custom JSP webpage which passes 'im' commands right in the JSP itself for the user/group creation and import. The other pieces (changing user group membership and such) uses webservices to make calls back to Integrity.
The JSP page has some login functionality written into it so these options are also only available to whoever is granted login access (mostly because if those commands run "diag" commands behind the scenes, they need to use an admin account).
This sounds very similar to what you are asking so I can say it is definitely possible to get this to happen, but the customer developed it themselves and I don't have any more knowledge about it outside what I wrote above.