You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2025-02-10 08:20:21

stazot
Member
Registered: 2025-01-31
Posts: 4

Alternate username fields value.

Hello everyone. How can I change the value in <LASTLOGGEDUSER>user</LASTLOGGEDUSER> from sAMAccountName to DisplayName. Or the value of another parameter that is displayed in the Alternate username field. Is it possible?
For example, instead of admin@test-vm, "John Doe" was displayed.

Alternate username
Thanks.

Offline

#2 2025-02-18 14:47:04

maci4
Member
Registered: 2009-07-19
Posts: 5

Re: Alternate username fields value.

Hello I have this same problem. I think I'm close to solving the problem but it's not working ;-)

In menu:  Administration -> Rules -> Business rules for assets
edit Domain user assignation
tab Actions and edited:
Fields: User based contact information
Action type: Assign the value from regular expression
Value: /(.*)(?=@)/

When in tab rule click button Test:
Item type: Computer
Automatic inventory: Yes
Alternate username: username@domain
click button test
Rule result:
Validation:    Yes
Result of the regular expression:   
Key    Value
0    username


In computer Inventory, I will force reinventory and this not working - still update form Alternate username with with full domain name like username@domain

Offline

Board footer

Powered by FluxBB