Automating setting User Group/Printer/Job queue

 2 Replies
 1 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
RickN
New Member
Posts: 2
New Member

    Hello,

    I am working on improving our user creation process. I currently have a Powershell script that prompts for some inputs, and then via SSH handles creating the unix account, building the XML files, and running the "loadusers" utility to create the user with the correct security roles. I have hit two bottlenecks I haven't been able to work around.

    First issue, I am having trouble finding a documented method for adding the unix account to the "User Group Definition" in the LAENV utility (laenv -> System Administration -> Environment Group Utilities -> User Group Definition). Does anyone know if this is actually possible without using the GUI through LID? 

    Second, in LSA is there a way to set values in the "Lawson Environment Information" for a user in some fashion that does not require the UI? This is for the User Group, Printer Group, Job Queue Group, Dist List Group options when right clicking on a user in LSA. I had hoped this was stored in Lawson's LDAP as I don't mind directly updating that, but this information does not appear to be there.

    Thank you,

    TBonney
    Veteran Member
    Posts: 281
    Veteran Member
      Rick,

      This is exactly what we do as well, using powershell to initiate all that you've mentioned. I'd be interested to find out about the user group info as well, since for us that process remains a manual update too.
      Jimmy Chiu
      Veteran Member
      Posts: 641
      Veteran Member

        (1) For inserting user account in usergrpdef in LID:

        You can update USERGRPDTL table directly in GEN database.

        (2) For the "third" screen, environment variables for the user in LSA:

        You can update USERINFO table directly in GEN database.

         

        You need to update both tables for it to work. An custom IPA flow can create account from start to finish automatically without you ever touching the LSA.