Support

 View Only
  • 1.  Prevent users from logging it to Jama during maintenance

    Posted 10-07-2021 10:36
    Hi,  We are making changes to our project structure in Jama, and would like to prevent non admins from logging in during this time.  Is there a way to prevent this?

    ------------------------------
    Martha Fiske
    Lucid Motors
    ------------------------------


  • 2.  RE: Prevent users from logging it to Jama during maintenance

    Posted 10-07-2021 15:12
    Hi Martha,
    you can make non-admins users inactive for the desired period of time.
    You can do this by REST API
    • loop over all user
    • if not belonging to organization admin user group, then set inactive and store in a list
    When finished,
    • loop over stored list
    • set the user active

    Best,
    Alessandro

    ------------------------------
    Alessandro
    Systems Engineer
    SICK AG
    ------------------------------



  • 3.  RE: Prevent users from logging it to Jama during maintenance

    Posted 10-07-2021 15:46
    Edited by Decoteau Wilkerson 10-07-2021 16:15
    Hi all, 

    Alessandro - I like this solution!

    Martha, I was trying to come up with a scenario in which you could utilize your SAML to keep users out but wasn't sure if that would work with your configuration. Plus, to keep your Admins from also being locked out in that scenario, you'd have to enable multi-mode authentication, allowing your Admins the chance to have a Basic (non-SAML) log-in option. 

     Alessandro's suggestion could be a much simpler option - if you're comfortable using Rest API. 

    Note - you can set up a message in your UI telling users about the "offline" time so they can prepare in advance. There are two ways to display this type of UI messaging: 1) At the "Basic" log-in page (which won't appear to those using SAML) 2) In the "Footer"/bottom section of the application. This messaging is controlled in your Root Menu General Properties section, so Hosted customers can request Support to arrange this on their behalf. 

    Please let me know if you have any questions.

    ------------------------------
    Decoteau Wilkerson
    Content Marketing Specialist
    Jama Software
    OR
    ------------------------------



  • 4.  RE: Prevent users from logging it to Jama during maintenance

    Posted 10-07-2021 16:14
    Hi Alessandro & Decoteau,
    Thanks for the responses.  I'll have to look into the inactive option as we have quite a few people who are legitimately inactive so I have to differentiate between those and the active ones that I need to change.  I may be able to use the rest api to get the list of inactive users and save the response, change all active users to inactive.  When I switch all users back to active, maybe I can use the response that I saved to change the appropriate users back to inactive.

    I will let you guys know if that works!



    ------------------------------
    Martha Fiske
    Lucid Motors
    ------------------------------



  • 5.  RE: Prevent users from logging it to Jama during maintenance

    Posted 10-08-2021 01:47
    HI Martha,

    that's the reason why I was previously saying "... store in a list" -> in such a way you store the active users. You have simply to manage it.
    More in detail: create a user group for all active users and fill it.
    deactivate users in above list
    do you maintainance
    activate users in above list
    In this way you can ignore user that were already inactive.

    I hope it helps.

    Best,
    Alessandro

    ------------------------------
    Alessandro
    Systems Engineer
    SICK AG
    ------------------------------



  • 6.  RE: Prevent users from logging it to Jama during maintenance

    Posted 10-08-2021 08:50
    Gotcha...That's a great idea, thanks Alessandro!

    ------------------------------
    Martha Fiske
    Lucid Motors
    ------------------------------



  • 7.  RE: Prevent users from logging it to Jama during maintenance

    Posted 10-22-2021 10:01

    Hi Guys,

    I just got around to trying this (probably should have done it with a few users first).  When the users were changed to inactive the License type is removed.  I believe that is why when I try to reactivate them through the script, they don't reactivate.  Any suggestions besides going through all the users manually?  I am waiting to get a list of our ad groups and plan on doing it manually, unless you have any other ideas.

    Thanks,



    ------------------------------
    Martha Fiske
    Lucid Motors
    ------------------------------



  • 8.  RE: Prevent users from logging it to Jama during maintenance

    Posted 10-22-2021 16:17
    Hi Martha,
    I am sorry for that! Finally it was me suggesting to do in this way :-(
    In my case the procedure works, but I get as default a creator floating license assigned.  I was able to change the license by simply performing PUT /users/{userId} and passing the license type to the body.
    Best,
    Alessandro

    ------------------------------
    Alessandro
    Systems Engineer
    SICK AG
    ------------------------------



  • 9.  RE: Prevent users from logging it to Jama during maintenance

    Posted 10-25-2021 11:16
    Thanks Alessandro,  I'm not sure why I didn't get a default set, but next time I will use the try using the PUT /users/userid with the license type.

    Thanks,



    ------------------------------
    Martha Fiske
    Lucid Motors
    ------------------------------