Page 1 of 1

How to get Username in Openkm Stamp instead of UserID

PostPosted:Thu Aug 15, 2019 8:10 am
by jahir
Hi,
How can i get Username in OpenKM stamp instead of UserID

Am using Openkm Version : 6.4.48-Pro Dev with Professional Extension

Example :
Username : Jahir
My Login ID : It1

I wants to get username: Jahir as a Stamp in documents.

Re: How to get Username in Openkm Stamp instead of UserID

PostPosted:Fri Aug 16, 2019 9:28 pm
by jllort
As a customer of the professional edition you have the customer website to get direct support from us. The public forum is not the right place to ask for it.

Anyway in the script you should convert the userId to userName calling:
Code: Select all
String userId = "someUserId";
String userName = OKMAuth.getInstance().getName(null, "userId");
API information at: https://docs.openkm.com/kcenter/view/ok ... ml#getName