472,985 Members | 2,568 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,985 software developers and data experts.

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 3532
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
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
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
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
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
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
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
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
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
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.