Last login user

Last login user
mkessler's picture

Hi All,

I would like to get and set the last login user as primary user of the machine.
Is it possible to do so ?

Thanks for your usual help.

Hi, Do you mean that you

MFINN's picture

Hi,
Do you mean that you want to set the Owner (CMDB field) to last login user, rather than primary user? What do you need to accomplish?

Let me clarify

MFINN's picture

If you let me know what you want to accomplish, maybe I can help. I'm a little unclear as to why you would need to query your primary user field in a situation where you can't query the last login user unless you are talking about populating the owner field in CMDB, in which case you can create a custom CMDB rule that will pull the last login user instead of the primary user. Inventory is dynamic, so it's going to constantly update. If what you want is for your last login user and primary user to just always be the same, you could use a custom inventory.

Hi, yes this is what I want

mkessler's picture

Hi,
yes this is what I want to do, in fact we have a lot of turn over in all the department, and the PC is not attached to one user but to a lot of them.
My management would like to get some reports on the last user who loggin instead of the primary user ( which in some cases is not the correct user)
Thank

MaYeu