CodeNode.ActiveDirectory 1.0.3

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" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CodeNode.ActiveDirectory --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

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");

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.3 1,023 10/19/2015
1.0.0.2 486 5/16/2015
1.0.0.1 513 5/16/2015
1.0.0 487 5/12/2015