I have a requirement to auto logout users, with the logout time being different for Admin and Non-Admin users.
I know there is no inbuilt funtionality in Jira to auto logout users.
But is there a way to identify admin vs non-admin users and maybe display a popup that their session is about to be end ?
Nothing in the UI will do this, but the API is simple enough for a spot of coding:
Read list of groups who have System admin
Read list of groups who have Jira admin
Check if user is in at least one of the groups
However, there's not a lot you can do with this unless you were to rewrite the code that handles the session, giving it the functionality to behave differently depending on the result of your coding above.
Given the very specific requirements I think you would be looking at some plugin development. If you really need to differentiate between admin and non-admin users you would need to involve some API to get that information from the application. Then you would also require to somehow terminate their sessions, I imagine there should be something in the API for that as well, although probably quite difficult to find any examples of.
Second is the "pop-up", if a user is active, why would they get a pop-up that their session is about to end? They are using the tool, on principle, every action they do in the tool their session gets "extended", they will lose it only after they are already inactive for some time. So if you really do need to log them out even despite them using the tool, then I imagine you would have to track their sessions based on their last login date.
I've never heard of any existing plugin that would prematurely terminate a user session, but I suppose it's not a who thinks what but rather how you'd get there, just my opinion this might be a tad more difficult than whoever came up with this requirement may think. I hope that someone may provide you a better suggestion than me, but from my perspective this smells of blood and sweat in plugin development.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event