namespace.CurrentUser - exactly where does this come from

K

KateG

I have a VB addin for Outlook 2003.
Mail server is Exchange Server 2003 SP2. Users are stored in Active
Directory on that server.

I'm using the namespace.CurrentUser.Address property in the addin to
determine the current user. My question is - where exactly does it pull this
from i.e. a field from the user's account on Active Directory, a registry
setting on the user's machine, etc?

In trying to figure this out, I've created a test user in AD and then
created an Outlook profile for it. Initially, this property seems to return
the first part of the email address from Active Directory (i.e. the part
before @domain.com), which is also the same as the alias field in AD. But if
I change either of those fields in AD, those changes aren't reflected when I
check this property. So I'm trying to figure out exactly where this property
is pulling from.

Thanks.
 
K

Ken Slovak - [MVP - Outlook]

Outlook gets it using Extended MAPI based on what logon was used for Outlook
and the Window logon if no explicit Outlook logon was used.
 
K

KateG

I guess I'm still slightly confused. I'm not sure what you mean by the logon
used for Outlook. The way I'm set up, when I open Outlook, I select a
profile, and then I have to enter my logon/password for Exchange Server.

I put a breakpoint in my code at the point where I'm calling this property.
It's occuring after I select the profile to use but before I'm prompted to
authenticate with Exchange Server. So I'm guessing that means it's not using
AD. Seems like it's coming from the client machine. But it's definitely not
using the Windows logon. I have a couple Outlook profiles on this machine,
and this property returns something different for each profile (Windows logon
is the same the whole time).

So this issue arose when a user changed their last name due to a marriage.
So say she used to be JaneDoe but is now JaneSmith. This property is still
returning JaneDoe, even though everything in AD shows her as JaneSmith now.
I'm trying to get this property to return the new name but don't know what I
need to change to make that happen.

Thanks again.
 
K

Ken Slovak - [MVP - Outlook]

It's based on the Outlook profile if you're getting prompted for a profile
when you start Outlook. Have you tried to just create a brand new Outlook
profile, not a copy of an existing one?

If that doesn't work I'd post in an Exchange admin group, since what you're
seeing is really an admin problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top