 |
|
|
|
| Author |
Message |
KateG
Joined: 19 Feb 2008 Posts: 2
|
Posted: Tue Feb 19, 2008 6:00 pm Post subject: namespace.CurrentUser - exactly where does this come from |
|
|
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.
Archived from group: microsoft>public>outlook>program_vba |
|
| Back to top |
|
 |
Ken Slovak - [MVP - Outlo
Joined: 12 Aug 2007 Posts: 405
|
Posted: Wed Feb 20, 2008 2:52 pm Post subject: Re: namespace.CurrentUser - exactly where does this come fro |
|
|
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" wrote in message @microsoft.com...
>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. |
|
| Back to top |
|
 |
KateG
Joined: 19 Feb 2008 Posts: 2
|
Posted: Wed Feb 20, 2008 4:16 pm Post subject: Re: namespace.CurrentUser - exactly where does this come fro |
|
|
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" wrote in message
> @microsoft.com...
> >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.
>
> |
|
| Back to top |
|
 |
Ken Slovak - [MVP - Outlo
Joined: 12 Aug 2007 Posts: 405
|
Posted: Wed Feb 20, 2008 7:26 pm Post subject: Re: namespace.CurrentUser - exactly where does this come fro |
|
|
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.
--
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" wrote in message @microsoft.com...
>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.
|
|
| Back to top |
|
 |
|
|
| Related Topics: | Regarding Default Namespace property of C# VSTO 2005 Outlook Hi, I am developing Addin for outlook 2003 using C# VSTO 2005. The Default Namespace property is always disbled. If I need to change the default the namespace, then I need to open .csproj in a notepad and change it.. Is i
Extend.dat file Using Outlook 2003 We recently installed a new server and pushed out the Outlook 2003 to all workstations. The majority of the workstations are receiving a "The add-in "C:\Program Files\Common could not be installed or l
CAN'T LOG ON TO WINDOWS MAIL Seems like an epidemic of people having problems related to WM connection and performance! My problem is that each time I open WM, a box pops up asking which connection to dial-up. I am on cable and do not have a dial-up connection. I marked a box sayi
Outlook2003 client not receiving email, but WebAccess is rec An Outlook 2003 SP2 client stopped receiving email yesterday; however, the email is available on the WebAccess Account. We are running an exchange server. Also, down on the lower right hand side, where Outlook gives the status, ie. 'Connected', 'Offline'
Please someone - My Outlook crashes repeatedly in search for Have OL 2007 working on Vista Business. It has worked properly for several months but suddenly seems to go bananas completely. Working for maybe one hour, or often less, it suddenly crashes and reports unability to find the pst file. (located in C:\Users\ |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|