We have a requirement in which we have to maintain all users under AD directory instead of Tridion and SDL tridion is integrated with Ad through LDAP, that means the user groups which we are going to create in tridion will not holds any users directly. User groups will hold Directory Service Group which is a group in AD and in that group we have assigned all the users in AD. So now my question is how to fetch all the users from directory service group which we assigned into the Tridion User group. I have code which can provide all the user and user groups name if those are assigned directly into the Tridion Group. Below is the code which I am using to fetch all the users from tridion
Group approverGroup = new Group(new TcmUri(groupId), session);
IEnumerable<Trustee> trustees = approverGroup.GetGroupMembers();
foreach (Trustee trustee in trustees)
{
if (trustee == null)
{
LoggerStream.WriteLine("trustee Not Found");
continue;
}
//local variable declaration.
string userName = trustee.Title.Split('\\')[1];
Now I need help regarding Directory service group that how to get all users using TOM.net.