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
    • Empower Replay: Limited Edition
    • 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
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • 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)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to get the logged in users mail address from engine (IAS)

Solved1.23K views1st August 2023Automation IAS
1
Mieke Dryepondt [SLC] [DevOps Advocate]3.60K 1st August 2023 0 Comments

We are developing a wizard via an IAS (to be used in Low code app) and would need to get the users mail address.

I found it is possible to get the user display name via the engine object, but how can I get the users mail address?

Mieke Dryepondt [SLC] [DevOps Advocate] Selected answer as best 1st August 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
João Severino [SLC] [DevOps Catalyst]13.02K Posted 1st August 2023 1 Comment

Hi Mieke,

As far as I know, the only way is via a SLNet message.

Here is a snippet that should help you with this

var securityInfo = engine.SendSLNetSingleResponseMessage(new GetInfoMessage(InfoType.SecurityInfo)) as GetUserInfoResponseMessage;
Dictionary<string, string> emails = new Dictionary<string, string>();
foreach (var user in securityInfo.Users)
{
emails.Add(user.FullName, user.EmailAdress);
}

If you do not need all email addresses you can replace the dictionary and the emails.Add with a simple filter, like below

var email = securityInfo?.Users?.FirstOrDefault(user => user.FullName == engine.UserDisplayName)?.EmailAdress;

Tom Waterbley [SLC] [DevOps Catalyst] Posted new comment 2nd August 2023
Tom Waterbley [SLC] [DevOps Catalyst] commented 2nd August 2023

There is also a FindUserByLoginName method that can be used instead of the Linq query. See https://community.dataminer.services/question/sending-an-email-to-the-dataminer-user-that-starts-the-script/answer/105295/.

You are viewing 1 out of 1 answers, click here to view all answers.
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