Author Topic: Disabling Users  (Read 152 times)

brianesr

  • Newbie
  • *
  • Posts: 6
    • View Profile
Disabling Users
« 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.

jsquizz

  • Sr. Member
  • ****
  • Posts: 250
    • View Profile
Re: Disabling Users
« Reply #1 on: June 25, 2018, 11:24:13 AM »
arsxml should work.
#AIX #CMOD #DB2 #TSM #XENOS #AFP2PDF #MIGRATION #TROUBLESHOOT

jsquizz

  • Sr. Member
  • ****
  • Posts: 250
    • View Profile
Re: Disabling Users
« Reply #2 on: June 25, 2018, 01:19:52 PM »
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.
#AIX #CMOD #DB2 #TSM #XENOS #AFP2PDF #MIGRATION #TROUBLESHOOT