Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 102067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:53:31+00:00 2026-05-11T00:53:31+00:00

How can I determine if a user, in say Access, is a member of

  • 0

How can I determine if a user, in say Access, is a member of an Active Directory Security Group?

I’d rather not build a whole authentication system into my little Access DB.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:53:32+00:00Added an answer on May 11, 2026 at 12:53 am

    Allain found this online

    Function IsMember(strDomain As String, strGroup _   As String, strMember As String) As Boolean   Dim grp As Object   Dim strPath As String    strPath = 'WinNT://' & strDomain & '/'   Set grp = GetObject(strPath & strGroup & ',group')   IsMember = grp.IsMember(strPath & strMember) End Function 

    You can get the Windows account info by way of the USERDOMAIN and USERNAME environment vars:

    Function GetCurrentUser() As String     GetCurrentUser = Environ('USERNAME') End Function  Function GetCurrentDomain() As String     GetCurrentDomain = Environ('USERDOMAIN') End Function 

    Putting it all together:

    If IsMember(GetCurrentDomain, 'AD Group', GetCurrentUser) Then    DoStuff() End If 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a sensible way to determine whether the current user can access an
Does anybody know how can I determine where the user clicked in a DataGrid
In Windows, how can I programmatically determine which user account last changed or deleted
How can I determine the absolute path of a file or directory from a
I need to determine if a URL entered by a site user is not
Let's say I have an ASCX user control that requires access to the current
I can determine the current number of connections by db.serverStatus().connections but all that gives
Can somebody please let me know how we can determine if a local disk
How can I determine the used size/length of a buffer created with create_string_buffer? buffer
How can I determine in KeyDown that ⇧ + Tab was pressed. private void

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.