Thanks Miruna Babatie
for you help. You code is ok.
I was checking SDK (LFSO83Lib)
I do not know if it is the best or even correct way. I use C#
Imagine is another alternative. But, I find a method I do not documented in Laserfiche :
get_SecuredDomainAccountsEx(int preloadFlags)
method of LFDatabase.
What is preloadFlags?
I use preloadFlags=1, I was lucky , work fine, but could be 0, 1, etc.
Code C# :
// Documento de entrada
ILFEntry documento = (ILFEntry)baseDatos.
GetEntryByPath("...\\documento1");
// Cuenta de dominios
//(Acceden a traves active directory)
// baseDatos=LFDatabase
LFSecuredDomainAccountCollection
cuentasActiveDirectory =
baseDatos.get_SecuredDomainAccountsEx(1);
// Porque 1 ? este metodo no se encuentra documentado.
for (int numero = 1;
numero <= cuentasActiveDirectory.Count; numero++)
{
// cuenta de dominio
LFDomainAccount u = (LFDomainAccount)
cuentasActiveDirectory.Item[numero];
// Acceso al documento
try
{
LFEffectiveRights
efectivo = (LFEffectiveRights)
documento.get_EffectiveRightsByName(u.Name);
string cadenaDerechos= efectivo.RightsString;
}
catch (Exception Error)
{
System.Console.WriteLine
(Error.Message.ToString().Trim());
}
}
I throught variable cadenaDerechos, I can see rights of document
ADMIN = RightsString "BrsReaMCnADaDelRenDPgSAnAnnRedWMeCrDCrFRAcWAcCOwSRDFrzEvTCls"