Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Extract local Groups and Users List?

50 views23 hours ago
2
Ben Russell [DevOps Member]34 1 day ago 0 Comments

I'm looking to extract a list of local groups and the users within each, rather than manually doing it. Additional information around permisisons (Rights & Views) would be a bonus but not vital.

João Severino [SLC] [DevOps Catalyst] Answered question 23 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
João Severino [SLC] [DevOps Catalyst]14.25K Posted 23 hours ago 0 Comments

Hi Ben,

You can extract the list of users and groups using the method mentioned in this other answer.

With the GetInfoMessage(InfoType.SecurityInfo) call, you can retrieve all users and all groups, and then perform a cross-reference of the data to determine the user's group.

In the end, you should have a method similar to the following snippet

var securityInfo = engine.SendSLNetSingleResponseMessage(new GetInfoMessage(InfoType.SecurityInfo)) as GetUserInfoResponseMessage;
Dictionary<int, string> groupNames = securityInfo.Groups.ToDictionary(g => g.ID, g => g.Name);
Dictionary<string, List<string>> groups = securityInfo.Groups.ToDictionary(g => g.Name, g => new List<string>());
foreach (var user in securityInfo.Users)
{
foreach (var userGroup in user.Groups)
{
if (groupNames.TryGetValue(userGroup, out var groupName))
{
groups[groupName].Add(user.FullName); // alternatively user.Name for username only
}
}
}

This should then allow you to write to a file or do anything you need with this information.

João Severino [SLC] [DevOps Catalyst] Edited answer 23 hours ago
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin