Re: namespace.CurrentUser - exactly where does this come from



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.

"Ken Slovak - [MVP - Outlook]" wrote:

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"KateG" <KateG@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5B577FF1-C800-4CFD-9274-4DB28B57BE5B@xxxxxxxxxxxxxxxx
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.


.



Relevant Pages

  • Re: Outlook/Exchange 500 MB of emails disappeared.
    ... Did you delete the old profile when you created the new one? ... The user has outlook configured as cached mode on his Vista Desktop. ... He went home fired-up the VPN and tried downloading emails. ... No mailbox management process running on Exchange Server ...
    (microsoft.public.outlook.general)
  • Re: Remote access to exchange
    ... and even when on a DSL connection away from the SBS LAN it will be 1MB +/- ... have had users complain about how slow Outlook works away from the SBS LAN. ... exchange server send the file out to it's destination after that. ... Ensure that you have an Outlook profile configured for the server ...
    (microsoft.public.windows.server.sbs)
  • Re: The specified default store could not be opened.
    ... tried all the same solutions, deleting a profile and readding the profile, ... not be opened please make sure you can access your default data store". ... Unable to open the Outlook Window. ... This resolves his name on the exchange server and the profile also ...
    (microsoft.public.exchange.admin)
  • Re: Deleted Item not in deleted folder?
    ... you will get errors trying to instantiate a MAPI.Session if CDO 1.21 ... A piggy-back logon won't do you any good at all if Outlook isn't running. ... Or you can use the profile name if you know it: ...
    (microsoft.public.outlook.program_vba)
  • Re: Outlook 2000 to Outlook 2003: Keep additional mailboxes settings
    ... Section 2 - Services in Profile ... AccountName=Microsoft Exchange Server ... [Outlook Address Book] ... > (Excange2003 hosts all mailboxes, no POP3, no Hotmail, we only connect to ...
    (microsoft.public.outlook.installation)

Loading