NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

how to get username as in input from Get-WfaRestParameter

SHYAMVOLVO
4,358 Views

Hi,

I am creating a workflow which will create  new user in netapp 7 mode system.

How can I display wfa logged in user  name as an input for creating new user in netapp system .

 

 Here by I am attaching my workflow.

What exactly I want  is , how can i get wfa logged in user in the username field .

 

Capture.JPG

 

Please help

Shyam

 

 

1 ACCEPTED SOLUTION

coreywanless
4,345 Views

From my knowledge, you cannot do this as a user input. However, you can call the logged on user from within a command in the workflow.  The Powershell commandlet would be Get-WfaRestParameter "userName" . A good reference command would be the 'Send email' Command. That Command has a couple different calls that may be handy.

 

Essentially, if you wanted you could make the 'username' field optional. Then in the command if the 'username' user input variable is null or empty, you can use the logged on user.

View solution in original post

2 REPLIES 2

coreywanless
4,346 Views

From my knowledge, you cannot do this as a user input. However, you can call the logged on user from within a command in the workflow.  The Powershell commandlet would be Get-WfaRestParameter "userName" . A good reference command would be the 'Send email' Command. That Command has a couple different calls that may be handy.

 

Essentially, if you wanted you could make the 'username' field optional. Then in the command if the 'username' user input variable is null or empty, you can use the logged on user.

Public