02-09-2017 07:33 AM
Hello Everyone,
I am seeking some info regarding, how to differentiate between EM user and Owner User of terminal currently fetching the user name by this method getEMLoginUsername.
But problem is if user is not logged in as EM but assigned on device as "Owner User" then also this method return the user name.
If possible, provide some info.
Thanks
Ayush Chaudhary
Switzerland
04-21-2017 02:41 PM
getEMLoginUsername should return an userid only where there is a active EM session on a controlled device. or if the end user logged into any device not in the control list.
You should not see any username if there is no EM session on the phone. Need more info to understand your scenario better:
Are you using any device profile in your control list?
05-24-2017 06:06 AM
Thanks for your reply!
but yes there is no way in JTAPI to distinguish EM user or a simple End user assign as owner user id on the phone.
Even no EM user will be logged in, and you assign owner user id on your phone then JTAPI will return you the name of your Owner from this method getEMLoginUsername.
By the way Thanks for your reply!
Ayush Chaudhary
Switzerland
05-24-2017 09:58 AM
Ayush,
Cisco JTAPI Javadocs says: This interface (CiscoTerminal.getEMLoginUsername) Returns Extension mobility(EM) Login UserName If no EM user has logged into Terminal, this interface will return null/empty string
Based on this getEMLoginUsername should not return the owner userid. If no EM user logged into the phone, it should return null. You may want to check the interface your are using and raise a case with Cisco Dev Support.
05-25-2017 01:17 PM
Thanks again Mohan for reply!
Yes it should return null in that case but it is not. And there is one more identifier called LoginType this method is also returning 1 in both case. When EM user is logged in on this phone or when an owner user id is assigned.
So in our case after much R&D on this we treated the owner user also as EM user if assigned on the device.
We haven't open a TAC case for this issue. That's why i posted this question here on forum.
Ayush Chaudhary
Switzerland
08-15-2017 09:30 AM
Did you ever find a solution to this? I think I'm having a similar problem. We have our OwnerIds pulled from LDAP and we changed an LDAP username. The phone still uses the old EM username when I call getEMLoginUsername()...
08-15-2017 01:27 PM
Nevermind, I just had to reboot the phone and it's getting the new Owner/Username.
08-15-2017 11:57 PM
No, there is no way to differentiate between EM user and Owner User of terminal!
So in our environment now we assume it as EM user case in both scenario!
Regards
Ayush
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide