This web part will list each user group and its members, as defined in your Active Directory (or other LDAP server) installation.
- Step 1: Ensure the RSSBus Web Part is installed.
- Step 2: Install the LDAP Connector. Add the RSSBus Web Part to your page and paste the following template into its source editor, but do not click �Apply� yet.
<rsb:import lib="RSSBus.LdapOps" />
<rsb:info>
<input name="showemptygroups" values="false,true" />
</rsb:info>
<!-- general ldap connection properties -->
<rsb:set attr="server" value="testman"/>
<rsb:set attr="authdn" value="NS2\\Lance"/>
<rsb:set attr="password" value="*****"/>
<!-- group search settings -->
<rsb:set attr="dn" value="dc=NS2"/>
<rsb:set attr="filter" value="objectClass=group"/>
<rsb:set attr="scope" value="WHOLESUBTREE"/>
<!-- group search -->
<rsb:call op="ldapSearch" save="groups" />
<rsb:call op="feedGet?feed=[_feeds.groups | urlencode]">
<rsb:set attr="showgroup" value="true" />
<rsb:equals attr="showemptygroups" value="false">
<rsb:set attr="showgroup" value="[ldap:member# | def('0') | equals('0', 'false', 'true')]" />
</rsb:equals>
<rsb:equals attr="showgroup" value="true">
<a href="javascript:;" onmousedown="toggleDiv('[ldap:name]-content');">[ldap:name]</a> ([ldap:member# | def('0')])
<div id="[ldap:name]-content" style="display:none">
<rsb:set attr="dn" value="[ldap:dn]"/>
<rsb:set attr="scope" value="BASEOBJECT"/>
<rsb:call op="ldapSearch" output="out">
<table width="100%">
<tr style="background-color:LightGrey"><td>samAccountName:</td><td>[ldap:samaccountname]</td></tr>
<tr style="background-color:LightGrey"><td>Full Group DN:</td><td>[ldap:dn]</td></tr>
<tr></tr>
<rsb:enum attr="ldap:member">
<tr><td colspan="2">[_value]</td></tr>
</rsb:enum>
</table>
</rsb:call>
</div>
<hr />
</rsb:equals>
</rsb:call>
<script> function toggleDiv(div) {
var mydiv=document.getElementById(div);
if(mydiv.style.display == 'none') {
mydiv.style.display = 'block';
}
else {
mydiv.style.display = 'none';
}
}
</script>
- Step 3: Modify this template so that it works for your Active Directory server.
There are several item to change:
- On line 8-10 change the values of the server, authentication DN, and authentication password settings to match your AD installation. See the advanced tip at the bottom of this post to automatically use the logged in user as the authentication DN.
- On line 13 modify the value of the DN setting to match your domain.
You can customize the HTML in the template or leave it as is.
- Step 4: Click "Apply". When the page reloads, you will be presented with a list of the groups on your Active Directory domain. Click on a group to expand it into its list of user members.
Advanced Tip: Use RSSBus� special _spuser item in order to get information specific to the currently authenticated SharePoint user. This is useful for listing documents modified by a specific user, authenticating to an Exchange server, and (in this example) for authenticating to AD. You can set the DN to "[_spuser.LoginName]", and prompt the user to enter their own password.

QuickBooks Data Provider
Salesforce Data Provider
Microsoft CRM Data Provider
SharePoint Data Provider
Google Data Provider
OData Data Provider
SAP Data Provider
Excel Data Provider
PowerShell Data Provider
Twitter Data Provider
Email Data Provider
Facebook Data Provider
Google Spreadsheet Data Provider
Amazon SimpleDB Data Provider
AS2 Connector
SFTP Connector
FTP Connector
OFTP Connector
QB Connector
Excel Add-In for SQLite





