OnDemand User Group
Support Forums => iSeries => Topic started by: brianesr on June 25, 2018, 06:22:54 AM
-
Does any one know if an easy way to Disable a large numbers of users quickly or with a cmd. I have to disable about 2000 users today and going into each one and clicking Disable user is going to take for ever
Thanks
Brian E.
-
arsxml should work.
-
I had a second to look at this for you, heres the field youre going to want..Note there are samples in the xml dir..
[wasadmin@server xml]$ more ondemand.xsd | grep disable
<xs:attribute name="disableUser" type="yesnoString" use="optional"/>
<xs:attribute name="disableOrLockUser" type="disableOrLockUserValue" use="optional"/>
<xs:simpleType name="disableOrLockUserValue">
[wasadmin@server xml]$ pwd
/opt/ibm/ondemand/V10.1/xml
soo..disableUser="yes" in an xml file, then just arsxml update to read it..should be a piece of cake.
I've just read through ondemand.xsd to figure out fields for arsxml, it can be tricky but not too bad.