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 6243663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:11:07+00:00 2026-05-24T12:11:07+00:00

Beyond the simple code samples for doing basic AD functions using System.DirectoryServices.AccountManagement, are there

  • 0

Beyond the simple code samples for doing basic AD functions using System.DirectoryServices.AccountManagement, are there general guidelines or could somebody post their own on integrating .net with an application? I have a standalone database of projects.

Projects can be assigned to a user. Should I store the UserPrincipleName, the Distinguished name, the GUID, or the SID in the database?

Parts of a project are restricted to employees in a particular department. Do I create a simple AD group for each department? Should I favor some sort of local caching or multiple IsMemberOf calls?

How should I handle more granular permissions like CanDoSomething. Should I nest more groups?

  • 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. Editorial Team
    Editorial Team
    2026-05-24T12:11:09+00:00Added an answer on May 24, 2026 at 12:11 pm

    If your application and the users using it are all on the same LAN, I would definitely recommend using direct Windows Auth.

    That is:

    • for each group of users in your app (regular users, demo users, admins), create a Windows / AD Security groups – those can be administered and handled by any Windows/AD admin (no special tools / UI stuff needed)

    • in your code, use the IsInRole method on the current WindowsPrincipal to figure out if that current user is in a particular role (or not)

    • more granular permissions: that’s entirely up to you; there are some “out of the box” solutions like AzMan, but none really seem to be used a lot – we mostly “roll our own” with some kind of a two- or three-layer approach (user – profile – permission) that is managed in the database and adminsitered within our apps

    The name of an AD object could change – so I would not use that as my unique and stable reference. The GUID or the SID are both fixed and don’t change – the GUID even more so (SID’s can be merged under certain circumstances and thus might change – more for groups, but it’s still possible)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not great with anything beyond basic javascript so please forgive the simple
Using the code sample below, how could I utilize the jquery cookie plugin so
I would like to make a simple user login/registration system using PHP and mysql.
Beyond the official documentation, are there any recommended resources for learning to build jQuery
Beyond creating a dll with all the same functions with the same interface and
When you move beyond using one instance for your database, what is the best
Are there any microscopic reasons at all (beyond superstition), to add an extra return
Not much knowledge about Javcascript beyond using it for some Dynamic HTML. Now I'm
I've got the following code, think simple shooter in c++: // world.hpp //---------- class
I'm baffled by what is happening to my simple code. It just doesn't go

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.