Maximo Open Forum

 View Only
  • 1.  Check access to an object structure

    Posted 27 days ago

    Hi,

    Is there a way to check using Rest API if the user has write access to certain object structure?


    #EverythingMaximo
    #MaximoApplicationSuite

    ------------------------------
    Rana Ahmed
    Maximomize
    ------------------------------


  • 2.  RE: Check access to an object structure

    Posted 26 days ago

    Hello

    Create OS to replicate below OS and relationship will be per query-

    MAXUSER

    • GROUPUSER
      • APPLICATIONAUTH
        • SIGOPTION

    SELECT * FROM GROUPUSER WHERE groupname IN (

    SELECT groupname FROM APPLICATIONAUTH WHERE app IN (

    SELECT app FROM SIGOPTION WHERE app IN (

    SELECT intobjectname FROM maxintobject))) AND userid='MAXADMIN'



    ------------------------------
    Regards,
    Prashant Sharma
    IBM Champion 2022|2023|2024|2025
    Connect with me @ https://www.linkedin.com/in/psharmamaximo/
    Lets learn MAS @ https://www.youtube.com/@reliabilityodyssey/
    ------------------------------



  • 3.  RE: Check access to an object structure

    Posted 24 days ago

    Thanks for this.
    Our reuirement is that we are looking for something OOB.



    ------------------------------
    Rana Ahmed
    Maximomize
    ------------------------------



  • 4.  RE: Check access to an object structure

    Posted 23 days ago

    many thanks 



    ------------------------------
    nasr buzaid
    eni
    ------------------------------



  • 5.  RE: Check access to an object structure
    Best Answer

    Posted 22 days ago

    We have the permission REST API for the logged in user. If you want to get all permissions for a user, you can use this:

    /maximo/oslc/permission/allowedappoptions

    If you want to get for a specific app or object structure, you can use something like this:

    /maximo/oslc/permission/allowedappoptions?app=ASSET
    /maximo/oslc/permission/allowedappoptions?app=MXAPIWODETAIL



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



  • 6.  RE: Check access to an object structure

    Posted 21 days ago

    Hi Steven,

    Thank you for telling us about this API. How do we know or dig further to get all inbuilt APIs?

    Thank you ! 



    ------------------------------
    Pavan Uppalanchu
    IBM
    ------------------------------



  • 7.  RE: Check access to an object structure

    Posted 21 days ago

    Some of the API features are documented in places like: IBM Maximo REST API Guide – IBM Maximo REST API Guide or Maximo - IBM TechXchange Community

    The Maximo REST API also supports the OpenAPI/Swagger documentation. If you access the documentation for Manage (hitting the Manage URL with: /maximo/oas3/api.html ) you can see APIs like this permissions API.  

    Enhancements are constantly being made to the product and not all of them are documented unfortunately. A lot of these requirements come from the product team to support requirements they have, especially with the new MAF based applications.  


    At the most basic level, if you are in the Object Structures application there is an Add/Modify API Route action. This will show you various handlers available. It won't explain to you how to use them, though, and there are a ton of different options for some like the object structure API. That's why you need to review the other documentation options. 



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