Get UserInfo using windows network login

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

Get UserInfo using windows network login

Post by enendza » Wed Jan 08, 2020 1:23 pm

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: 14
Joined: Mon Oct 06, 2008 9:29 am

Re: Get UserInfo using windows network login

Post by Gil McNeill » Wed Jan 08, 2020 1:54 pm

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: 42
Joined: Wed Oct 16, 2019 12:22 pm

Re: Get UserInfo using windows network login

Post by enendza » Thu Jan 09, 2020 6:50 am

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

Post Reply