Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Automation Scripting & Escalations

    Posted Mon April 10, 2023 03:43 PM

    Hello, 

     

    My team has started looking at ways to automate the process of assigning a user to a person group. As of now, the process is:

    - Create a user in MAS

    - Go to Manage > Users Application > Assign 2 security groups per user:

    1. The user's role (Technician, Manager, Supervisor, etc)
    2. The user's DC site # (The ID of the Distribution Center where the user works)

     

    Once this is complete, I have to add the user to their appropriate Person Group. Each Person Group is just the DC site # (EX: If Joe works at Site ID 5656, he would have Security Group 5656 associated to his account in the Users application, and he'd be added to Person Group 5656).

     

    Since there is a correlation between a User's Security Group and his/her Person Group, I am hoping that this process can be automated. Could someone point in me in the right direction? I am fairly new creating escalations and automation scripts. Any help would be greatly appreciated. Thanks!






    ------------------------------
    Carlos Mestre
    ------------------------------


  • 2.  RE: Automation Scripting & Escalations

    Posted Mon April 10, 2023 04:33 PM
      |   view attached

    The attached script will add users to a person group if the person group name matches the security group name and the security group name is a valid site. It will also create a new person group if a group doesn't already exist and will delete the user if you remove them from the security group.

    Note that the scriptConfig variable at the end of the script works with the VS Code Maximo Development Tools plugin so you can deploy it directly to Maximo without having to manually configure the script.

    https://marketplace.visualstudio.com/items?itemName=sharptree.maximo-script-deploy

    If you want to deploy it manually, it has an object launch point on GROUPUSER for Add and Delete.

    If you have any questions feel free to reach out.

    - Jason



    ------------------------------
    Jason VenHuizen
    https://sharptree.io
    https://opqo.io
    ------------------------------

    Attachment(s)

    js
    groupuser.persongroup.js   4 KB 1 version


  • 3.  RE: Automation Scripting & Escalations

    Posted Wed February 12, 2025 10:06 AM

    Lovely example, just what I needed. Thanks.



    ------------------------------
    Robert Goff
    ------------------------------



  • 4.  RE: Automation Scripting & Escalations

    Posted Mon April 10, 2023 04:34 PM

    Note, you will need to view my reply on the web as the script attachment is removed from the email updates.



    ------------------------------
    Jason VenHuizen
    https://sharptree.io
    https://opqo.io
    ------------------------------