Page 1 of 1

Get UserInfo using windows network login

Posted: Wed Jan 08, 2020 1:23 pm
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 "";
}

Re: Get UserInfo using windows network login

Posted: Wed Jan 08, 2020 1:54 pm
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.

Re: Get UserInfo using windows network login

Posted: Thu Jan 09, 2020 6:50 am
by enendza
Thanks, I have re-posted this item in the other forum