Use the UserService
to lookup the user id and obtain profile details like username.
Java BDK example, assuming users
is an instance of UserService
:
users.listUsersByIds(List.of(123456L)).get(0).getUsername()
Using person-selector i am getting arraylist of long type for the names selected but they are having userId how to get username from the userId in java .
Use the UserService
to lookup the user id and obtain profile details like username.
Java BDK example, assuming users
is an instance of UserService
:
users.listUsersByIds(List.of(123456L)).get(0).getUsername()