473,498 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to get the AD user group to which an Access user belongs??

I am developing an Access database that will be used by some users
logging into Citrix servers.

Using the "Code 1" listing, 'fGetFullNameOfLoggedUser' from Dev
Ashish's site, which I found in this thread:

http://groups.google.com/group/comp....aeea7d08d31849
subject: Question about 'fGetFullNameOfLoggedUser'

I implemented this as the control source of a simple text box, and it
worked successfully in my first trial.

Is there any code on this list which will have Access tell me the user
group(s) to which a user belongs??

It's a typical MS domain controller and typical Citrix farm setup.

Or even use the fGetUserName() code part to know what user group
someone is in??

Thank you, Tom

Feb 6 '06 #1
8 3568
Tom,

There's code to do that in the MS Access Security White Paper. You can
find that floating around on the MS site, or at my old website
http://www.abcdataworks.com in the Developers section.

Jeremy
--
Jeremy Wallace
Fund for the City of New York

Feb 6 '06 #2
Thank you...I am hoping not to use Access security to not have to use
logins etc.
I may just have to start with Access for initial development/testing,
then move it to SQL Server and use Windows Auth etc.
I'm waiting for my copy of Baron and Chipman (I think they are the
authors) to figure out whether I can or cannot use an MDB front end to
SQL 2000.]
Thank you, and to anyone else who offers their suggestions.
Thank you, Tom

Feb 6 '06 #3
"tlyczko" <tl*****@gmail.com> wrote in
news:11**********************@g14g2000cwa.googlegr oups.com:
I am developing an Access database that will be used by some users
logging into Citrix servers.

Using the "Code 1" listing, 'fGetFullNameOfLoggedUser' from Dev
Ashish's site, which I found in this thread:

http://groups.google.com/group/comp....ss/browse_thre
ad/thread/9ba1a9bc7ebc270e/36aeea7d08d31849#36aeea7d08d31849
subject: Question about 'fGetFullNameOfLoggedUser'

I implemented this as the control source of a simple text box, and
it worked successfully in my first trial.

Is there any code on this list which will have Access tell me the
user group(s) to which a user belongs??

It's a typical MS domain controller and typical Citrix farm setup.

Or even use the fGetUserName() code part to know what user group
someone is in??


There is an API for getting Active Directory information, but I was
never ever able to figure out how to get the organizational unit
information out of it. I have an application where I would have used
that, but I couldn't figure it out, so instead manually replicated
the OU membership in Jet security. I just didn't have time to figure
out the Active Directory methods and am not sure that the OU
information is even available through the APIs at all. Surely it is,
since the AD tools can display it, but I couldn't for the life of me
figure out how.

And, at this point, I've lost the URLs to the MSDN articles
describing how it is done.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Feb 6 '06 #4
"Jeremy Wallace" <je************@gmail.com> wrote in
news:11**********************@f14g2000cwb.googlegr oups.com:
There's code to do that in the MS Access Security White Paper. You
can find that floating around on the MS site, or at my old website
http://www.abcdataworks.com in the Developers section.


Jeremy, I think you missed the significance of "AD" in the subject
-- he's looking for Active Directory user groups (and probably
organizational units, which are in AD only, and not part of NTFS
security, which has only users and groups).

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Feb 6 '06 #5
Yup. I wondered what it was for a second. I think I even came up with
some answer to satisfy myself that my knee-jerk reaction was right
(though I certainly can't remember what that was), and then I answered
based on my assumptions, not his actual request.

Sorry, Tom. I can't help you with Active Directory stuff.

Jeremy
--
Jeremy Wallace
Fund for the City of New York

Feb 6 '06 #6
I'm only looking for AD user groups, not OU organizational unit stuff,
but the NTFS security stuff, so I can say based on their AD user group
membership they can or cannot see or do things in the FE.

Thank you, Tom

Feb 7 '06 #7
"tlyczko" <tl*****@gmail.com> wrote in
news:11**********************@f14g2000cwb.googlegr oups.com:
I'm only looking for AD user groups, not OU organizational unit
stuff, but the NTFS security stuff, so I can say based on their AD
user group membership they can or cannot see or do things in the
FE.


The AD user groups are identical to the NTFS user groups, so the
functions for this at that Access Web (mvps.org/access) should do
the job.

If you don't believe me, compare the AD group listings to the actual
user groups on your domain controller. Test the code. You'll find
that the only difference is in the organization.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Feb 7 '06 #8
Hello David,

I'm sure you're right, and I looked at the entire list of API items on
the mvps.org/access site, but didn't find anything about user groups in
there, I looked at the code for enumerating user accounts and getting
the login ID and getting the full name.

Unless I missed something and did not look in the right place, I don't
know.

I'll try Googling that site.

Thank you, Tom

Feb 7 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3186
by: Tim Daneliuk | last post by:
OK, I've Googled for this and cannot seem to quite find what I need. So, I turn to the Gentle Geniuses here for help. Here is what I need to do from within a script: Given a username and a...
4
3022
by: Norman Fritag | last post by:
Hi there, I would like to retrieve of a secured database the Username and the group that he / she belongs to, to apply access rights to some button click events, which are accessing forms that...
2
10455
by: Alex Bibiano | last post by:
I use this code to get the current user in my Windows application: AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal); WindowsIdentity wi = WindowsIdentity.GetCurrent();...
3
1938
by: Jiho Han | last post by:
Should ASPNET user belong to the local Users group? I may have made some changes that affected my workstation setup and I am experiencing some unexpected behaviors. For example, I have my IIS...
6
2062
by: Evgeny Zoldin | last post by:
Hi ALL. I have the configuration: 1. WinXP PRO with MS IIS 5.0 and installed ASP.NET 2. ASP.NET application A configured to authenticate only users from local Users group. I would like to de...
2
1705
by: Jeroen | last post by:
I am developing an asp.net website with windows authentification and I want to check to which group the user belongs. I know how to check for the user that has logged in and to see if he belongs...
8
13127
by: Oliver Rainer | last post by:
Hi, I have the following problem... Pre-requisites: Installation of an Asp.net webservice on a IIS5 server (win2k). Anonymous access is not allowed, only using windows authentication (intranet...
8
4878
by: Mark White | last post by:
Hey everyone I'm having a great deal of problems finding this information through google and yahoo, so I turn to you on this. I have a Windows app running on XP. I am able to caputre the...
13
2683
by: ThunderMusic | last post by:
Hi, I have to develop an application that will consist of a service and a windows forms application... the service could be on a distant server but I need to authenticate the user as being part...
0
7210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6891
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7381
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5465
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4916
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
659
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
293
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.