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