cancel
Showing results for 
Search instead for 
Did you mean: 

Get All User C#

ivan_a
Champ in-the-making
Champ in-the-making
Hi, I'm new to Alfresco and also in the forum.
I am creating an application using Visual Studio 2008 C # with Alfresco 3.2R, consuming Web Services  Alfresco.
I need to get all the users in alfresco repository but have not found a method to do so.
Someone knows how can I do?
Thank you very much.

Excuse my English.
1 REPLY 1

ivan_a
Champ in-the-making
Champ in-the-making
I answer myself.
I leave the code here if someone serves.


UserFilter filtro = new UserFilter();
            var result = administrationService.queryUsers(filtro);

            int i = 0;
            ArrayList Usuarios = new ArrayList();
            string usuario;
            bool flagSeAcabo = false;
            do
            {
                try
                {
                    usuario = result.userDetails.userName;
                    Usuarios.Add(usuario);
                    i++;
                }
                catch
                {
                    flagSeAcabo = true;
                }

            } while (!flagSeAcabo);

           

            lbResultado.Text = "Hay " + i.ToString() + " Usuarios";