PC Review


Reply
Thread Tools Rate Thread

How do I get the active group for the active user

 
 
=?Utf-8?B?TG9pcw==?=
Guest
Posts: n/a
 
      24th Aug 2005
I'm in Access 2002 (XP) and I use CurrentUser() to get the current user.
However I need to activate a toolbar according to the group that is active.
How do I do this.
 
Reply With Quote
 
 
 
 
Rick B
Guest
Posts: n/a
 
      24th Aug 2005
A user will almost always be a member of more than one group. You can test
to see if they are in a particular group. There is a function you would
have to build.

Do a search and read the previous posts related to "IsUserInGroup" or
"IsInGroup". I can't remember which is the appropriate name.


--
Rick B



"Lois" <(E-Mail Removed)> wrote in message
news:3DD9CC70-E53D-44A0-965C-(E-Mail Removed)...
> I'm in Access 2002 (XP) and I use CurrentUser() to get the current user.
> However I need to activate a toolbar according to the group that is

active.
> How do I do this.



 
Reply With Quote
 
=?Utf-8?B?TG9pcw==?=
Guest
Posts: n/a
 
      24th Aug 2005
The problem is that I loop through all the groups but this does not assure me
that if the user is assigned to two groups that the active group is the one
that is listed. In fact that is my problem. How can I test the active group
with the value in the loop for the current user. I can find the active
group when using DAO but not in ADO . Any other suggestions?

"Rick B" wrote:

> A user will almost always be a member of more than one group. You can test
> to see if they are in a particular group. There is a function you would
> have to build.
>
> Do a search and read the previous posts related to "IsUserInGroup" or
> "IsInGroup". I can't remember which is the appropriate name.
>
>
> --
> Rick B
>
>
>
> "Lois" <(E-Mail Removed)> wrote in message
> news:3DD9CC70-E53D-44A0-965C-(E-Mail Removed)...
> > I'm in Access 2002 (XP) and I use CurrentUser() to get the current user.
> > However I need to activate a toolbar according to the group that is

> active.
> > How do I do this.

>
>
>

 
Reply With Quote
 
Rick B
Guest
Posts: n/a
 
      24th Aug 2005
What do you mean ACTIVE GROUP? If my UserID is part of two groups (users
and admins) there is no ACTIVE group. I am a member of both groups at any
given time.



--
Rick B



"Lois" <(E-Mail Removed)> wrote in message
news:4808E84F-600E-4BA2-896E-(E-Mail Removed)...
> The problem is that I loop through all the groups but this does not assure

me
> that if the user is assigned to two groups that the active group is the

one
> that is listed. In fact that is my problem. How can I test the active

group
> with the value in the loop for the current user. I can find the active
> group when using DAO but not in ADO . Any other suggestions?
>
> "Rick B" wrote:
>
> > A user will almost always be a member of more than one group. You can

test
> > to see if they are in a particular group. There is a function you would
> > have to build.
> >
> > Do a search and read the previous posts related to "IsUserInGroup" or
> > "IsInGroup". I can't remember which is the appropriate name.
> >
> >
> > --
> > Rick B
> >
> >
> >
> > "Lois" <(E-Mail Removed)> wrote in message
> > news:3DD9CC70-E53D-44A0-965C-(E-Mail Removed)...
> > > I'm in Access 2002 (XP) and I use CurrentUser() to get the current

user.
> > > However I need to activate a toolbar according to the group that is

> > active.
> > > How do I do this.

> >
> >
> >



 
Reply With Quote
 
Chris Mills
Guest
Posts: n/a
 
      25th Aug 2005
"Active Group" is not a valid term.

You could say no groups are active.
You could equally say all groups are active.
You cannot say one group is active over another.

The only thing that's "active" is CurrentUser(), and they inherit all the
permissions, cumulatively, of all the groups they belong to.

How can you tell an "active group" with DAO, and what makes you think there
is?

Perhaps if you posted what exactly you were trying to achieve...we simply
don't know what you mean.

(also, it's got to be some special security issue, to even want to go through
the groups in code. In one db I do do it, to find in code if the user has
permission for something. But I step through (the user) and then all the
groups they belong to, to see if they have a particular permission. When they
do, no need to check further. The order of groups is probably alphabetical for
all I know, so nothing can be gleaned from which group I found the permissions
in first)

Chris

"Lois" <(E-Mail Removed)> wrote in message
news:4808E84F-600E-4BA2-896E-(E-Mail Removed)...
> The problem is that I loop through all the groups but this does not assure

me
> that if the user is assigned to two groups that the active group is the one
> that is listed. In fact that is my problem. How can I test the active group
> with the value in the loop for the current user. I can find the active
> group when using DAO but not in ADO . Any other suggestions?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Active Directory : Add an user to a group ! moi Microsoft ASP .NET 2 22nd Apr 2006 02:37 PM
Can a a 2 node cluster support both active/active and active/passive configurations John H Microsoft Windows 2000 Advanced Server 0 19th Sep 2005 02:16 PM
Add User To Group in Active Directory using JNDI zieg Microsoft Windows 2000 Active Directory 5 28th May 2004 08:54 AM
Local user and group in computer management was disable after demote from active directory, please help wesley shih Microsoft Windows 2000 Active Directory 1 11th Jan 2004 09:24 PM
Local user and group in computer management was disable after demote from active directory, please help wesley shih Microsoft Windows 2000 0 8th Jan 2004 11:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:06 PM.