Null value returning instead of Usernam!

Hello ,
i ran this line of script to get my userman users’s username, but it will show null in log! if i switch username attribute to comment it’ll work like a charm :slight_smile:
do you have any idea of why this happening ?

:log info [tool user-manager user get 1 username]
  1. USE FULL SYNTAX

  2. you can not use number obtained by “print” command on one script.

  3. the value you want is name, not username

replace “1” with your wanted value.
the first user has index 0, second 1 etc.

:log info message=[/tool user-manager user get ([/tool user-manager user find] -> 1) value-name=name];