The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Active IQ Unified Manager Discussions

Send email to current user

jakob_scheidler

Hello,

is there any way to get the email address of the user starting a workflow from within a command?

Regards,

Jakob

1 ACCEPTED SOLUTION

sinhaa

Jakob,

     You can get the user-name of the user who executed the workflow from a command, but for email id, the API doesn't provide. It can be taken as an improvement for future.

You can use the below cmdlet to get the name of the workflow executor:

Get-WfaRestParameter "userName"

But you can make use of this for your requirement if:

1. You create WFA local users with their email IDs as Usernames.

2. If you use Domain Login for WFA, then you can change the User name attribute in WFA Configuration from sAMAccountName to UserPrincipalName i.e. UPN assuming the UPN and Email IDs are same ( they generally are ). Now you login to WFA as user@Domain.com and since this is also the email id, the above api can get it.

warm regards,

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

3 REPLIES 3

sinhaa

Jakob,

     You can get the user-name of the user who executed the workflow from a command, but for email id, the API doesn't provide. It can be taken as an improvement for future.

You can use the below cmdlet to get the name of the workflow executor:

Get-WfaRestParameter "userName"

But you can make use of this for your requirement if:

1. You create WFA local users with their email IDs as Usernames.

2. If you use Domain Login for WFA, then you can change the User name attribute in WFA Configuration from sAMAccountName to UserPrincipalName i.e. UPN assuming the UPN and Email IDs are same ( they generally are ). Now you login to WFA as user@Domain.com and since this is also the email id, the above api can get it.

warm regards,

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

jakob_scheidler

Sinhaa,

thank you for your answer. It should be ok as a work around. I'll test if UPNs will work. An API for retrieving a users email address would be nice anyways.

Regards,

Jakob

adaikkap

Hi Jakob,

     Can you give me some more background on what you are trying to do and why you are doing it ?

IIRC, when you create a local user in WFA server, you can specify the email address of the user.

I will have to check, how the same works in case of AD/LDAP integration.

Regards

adai

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public