Maximo Open Forum

 View Only
  • 1.  Remove ability to delete attachment

    Posted 3 days ago

    Hello all,  I am wondering if it's possible to remove the button to delete an attachment for certain security groups, but I'm unsure where this is located in order to see if it is possible to restrict the ability to delete.

    Thank you,


    #Administration
    #Assets
    #EndUser
    #EverythingMaximo

    ------------------------------
    Danny Richardson
    Maximo Administrator Manager
    Technimark LLC
    ------------------------------


  • 2.  RE: Remove ability to delete attachment

    Posted 3 days ago

    You could do this a couple of different ways, but the easiest path would be to create an Allow Object Deletion automation script IBM Maximo Autoscripting Guide – Object launch point

    A simple script is below that would throw an error if the user is not in the MAXADMIN group and you're trying to delete an attachment in the WOTRACK application. You would want to define this error in the Database Configuration application and can adjust the criteria as necessary.



    if mbo.getThisMboSet().getParentApp()=="WOTRACK":
        # Check to ensure user is in the desired security group
        groupUserSet=service.getMboSet("GROUPUSER",mbo.getUserInfo())
        groupUserSet.setWhere("groupname='MAXADMIN' and userid=:USER")
        
        if groupUserSet.notExist():
            service.error("nvm","noDeleteDoclinks")



    ------------------------------
    Steven Shull
    Naviam
    ------------------------------