Announcing a new beta release of the Document.Factory adding support for querying membership of active directory groups.

With support for active directory, you can specify a particular active directory group to query with a new header:

:: activedirectory ::
administrators:
    context: machine
    group: Administrators

Then you can iterate over the members of the group within a liquid template, for example, to generate a table listing all the members of the group:

<table>
    <tr>
        <th>User</th>
        <th>Name</th>
        <th>Description</th>
        <th>Last Login</th>
    </tr>
{% for member in Administrators.Members  %}
    <tr>    
        <td>{{ member.Name }}</td>
        <td>{{ member.DisplayName }} </td>
        <td>{{ member.Description }} </td>
        <td>{{ member.LastLogon }} </td>
    </tr>
{% endfor %}
</table>

Comments

blog comments powered by Disqus
Next Post
Christchurch Code Camp 2015  17 May 2015
Prior Post
Cryptic Error Codes  04 Apr 2015
Related Posts
Browsers and WSL  31 Mar 2024
Factory methods and functions  05 Mar 2023
Using Constructors  27 Feb 2023
An Inconvenient API  18 Feb 2023
Method Archetypes  11 Sep 2022
A bash puzzle, solved  02 Jul 2022
A bash puzzle  25 Jun 2022
Improve your troubleshooting by aggregating errors  11 Jun 2022
Improve your troubleshooting by wrapping errors  28 May 2022
Keep your promises  14 May 2022
Archives
May 2015
2015