Validating user using GAL DL

T

tcoste

Hi,

I'm putting together a custom Task form to track our companies
Preventative Maintenance tasks in Outlook. What I'd like to do is
check the CurrentUser against a DL in the GAL and only provide some
features if they aren't a PM manager.

I've found examples on how to check the CurrentUser against the GAL,
but I'm not sure how to make certain that they are a member of a
certain DL. Alternatively, I could use a Group Policy setting to check
them, but I've found even less discussing how to check group policy
from within Outlook using VBScript.

Thanks!
Tim
 
S

Sue Mosher [MVP-Outlook]

"Group Policy" in this context just means a registry value under the HKCU/software/Policies key. Read it the way you would any registry value.

As for reading a DL, is its membership visible or hidden? What version of Outlook?
 
T

tlc

Hi Sue,

We're currently running Outlook 2002 (XP), but we'll be upgrading to
Outlook 2003 sometime soon. (Hard to pin down those IT people!) The
DL membership is visible.

As for the group issue, I'm not a sys admin, but my understanding is
that we use group membership for controlling access rights and the like
on the network. We're in the process of moving to active directory,
but I'm not sure if that changes any of this or not.

I'd like to add a little more to my original post for additional
clarity. I'm going to create a setup command button. When that button
is clicked, I'd like to check the current user against either a network
group or a DL for current user membership. If the CU is on the list,
I'll show several additional buttons on the form to access more
details. If they're not, they'll get a msgbox saying they must be a
manager to access these functions.

Thanks!
Tim
"Group Policy" in this context just means a registry value under the
HKCU/software/Policies key. Read it the way you would any registry
value.
 
T

tlc

Hi Sue,

We're currently running Outlook 2002 (XP), but we'll be upgrading to
Outlook 2003 sometime soon. (Hard to pin down those IT people!) The
DL membership is visible.

As for the group issue, I'm not a sys admin, but my understanding is
that we use group membership for controlling access rights and the like
on the network. We're in the process of moving to active directory,
but I'm not sure if that changes any of this or not.

I'd like to add a little more to my original post for additional
clarity. I'm going to create a setup command button. When that button
is clicked, I'd like to check the current user against either a network
group or a DL for current user membership. If the CU is on the list,
I'll show several additional buttons on the form to access more
details. If they're not, they'll get a msgbox saying they must be a
manager to access these functions.

Thanks!
Tim
"Group Policy" in this context just means a registry value under the
HKCU/software/Policies key. Read it the way you would any registry
value.
 
T

tlc

Hi All,

I still don't know how to check a user against a group in the GAL. If
anyone has any other suggestions how to check a user against a
system-maintained list, I'd love to hear them. What I'm trying to
avoid (but would be pretty easy to implement) is hard-coding a user
list into my custom form. I'd hate to create another place where lists
have to be maintained.

Thanks!
Tim
 

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