Get UserInfo using windows network login

Discussions related to integration with SoftPro Standard or SoftPro Enterprise editions.
Post Reply
enendza
Posts: 75
Joined: Wed Oct 16, 2019 12:22 pm

Get UserInfo using windows network login

Post by enendza »

Hi -

I have a process that needs to get information about a SoftPro user. I have their networkLogin (i.e. DOMAIN\UserName) - I wrote this code but the user object is always returned as NULL.

Any advice?

ISecurityManager sm = selectServer.GetService<ISecurityManager>();

//Get your current user
ISecurityUser userInfo= sm.GetUser(AuthenticationScheme.Windows, "DomainName\Jane.Doe");

if (userInfo!= null)
{
return userInfo.EmailAddress;
}
else
{
return "";
}
Gil McNeill
Posts: 16
Joined: Mon Oct 06, 2008 9:29 am

Re: Get UserInfo using windows network login

Post by Gil McNeill »

Hi..this is posted in the wrong forum. You should post your question to the "Integration Development" forum for Select.

Thank you.
Gil McNeill
SoftPro Software Engineer
enendza
Posts: 75
Joined: Wed Oct 16, 2019 12:22 pm

Re: Get UserInfo using windows network login

Post by enendza »

Thanks, I have re-posted this item in the other forum
Post Reply