Active IQ Unified Manager Discussions

Send email to current user

jakob_scheidler
4,200 Views

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
4,200 Views

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

adaikkap
4,200 Views

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

sinhaa
4,201 Views

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.

jakob_scheidler
4,200 Views

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

Public