Posted Fri, 21 Oct 2022 06:42:56 GMT by Thanuja Samarawickrama
Enable GingerCannot connect to Ginger Check your internet connection
or reload the browser
Disable in this text fieldRephraseRephrase current sentence3Edit in Ginger
Dear Team,

I want to retrieve the system's user list with their roles and groups as a one list using .net application.
I tried this.
org.GetGroupsFromGroupsRelation. It will only return user names.
Is it possible to make one?
Posted Sat, 29 Oct 2022 00:00:39 GMT by Matthias Wieland Senior Director Support EMEA
Dear Thanuja Samarawickrama! It looks like the Community cannot answer your question. That's why we have opened a Support Request with the Number SR-189163-X5Z0S for you. A Software Support Specialist will contact you directly to follow up. We will update this thread with the solution as soon as we have resolved the Support Request. With best regards, DocuWare Support Team
Posted Tue, 08 Nov 2022 09:18:45 GMT by Alex Fouquet Technician Software Support
Dear Thanuja,
It is possible to retrieve a list of all users containing their name, roles and groups.
With the fallowing code example, this can be achieved:
var org = conn.Organizations[0];
var users = org.GetUsersFromUsersRelation();
foreach(var curentUser in users.User)
    Groups groups = curentUser.GetGroupsFromGroupsRelation();
    foreach(var currentGroup in groups.Item)
        Console.WriteLine("The name of the group: " + currentGroup.Name);
    Roles roles = curentUser.GetRolesFromRolesRelation();
    foreach(var currentRole in roles.Item)
      Console.WriteLine("The name of the role:" + currentRole.Name);
Please note that we are getting the UsersRelation over the organization.
For further questions, please don't hesitate to ask.

Best regards

You must be signed in to post in this forum.