This library has Active directory specific actions to find users, group on various search parametes.
I have provided link of my blog as Project-Site and you can find complete details of library and code repository location of github from my blog.
Install-Package CodeNode.ActiveDirectory -Version 1.0.3
dotnet add package CodeNode.ActiveDirectory --version 1.0.3
<PackageReference Include="CodeNode.ActiveDirectory" Version="1.0.3" />
paket add CodeNode.ActiveDirectory --version 1.0.3
Added some new methods.
Added support to get user informatoin for window app also. Some methods are as :
A small code snippet :
// get user ad id for hosted web app with window authentication enabled
var currentWenUserAdId = Helper.GetCurrentWebUserAdId();
// get current win user for in domain window app, use this username for further with ActiveDirectoryManager
var currentWinAppuserName = Helper.GetCurrentUserNameForWindowApp();
var manager = new ActiveDirectoryManager();
var webAppUser = manager.GetCurrentWebUser();
var winAppUser = manager.GetCurrentWindowUser();
// get list of groups user belongs to
var userGroups = manager.GetUserGroupNames(currentWinAppuserName).ToList();
// get list of authorization groups of user
var athGrps = manager.GetUserAuthorizationGroupNames(currentWinAppuserName).ToList();
// check user belongs to particular group
var isUserGrpMember = manager.IsUserGroupMember(currentWinAppuserName, "AnyGroupName");
This package has no dependencies.
This package is not used by any popular GitHub repositories.