efa auth user

Configure users with CLI.

Syntax

efa auth user add [ --userName string --emailID string --roles string ]
efa auth user block-unblock [ --userName string --isBlock { true | false} ]
efa auth user reset [ --password string --resetLink string ]
efa auth user request-reset-password [ --userName string--emailID string ]
efa auth user show
efa auth user delete [ --userName string ]
efa auth user show-active [ --authType {TACACS | LDAP | LOCAL | HOST } ]

Parameters

--userName string
Specifies the user name to configure.
--emailID string
Specifies the email address of the user to configure.
--roles string
Specifies the roles to assign to the user.
--isBlock { true | false}
Specifies the isBlock status of the user.
--password string
Specifies the password for the user.
--resetLink string
Specifies the password reset link for the user.
--authType { TACACS | LDAP | LOCAL | HOST }
Specifies the authentication type of the active users to list.

Examples

This example adds a new user, specifying user name, user email address, and roles.

$ efa auth user add  --userName testabc --emailID testabc@gmail.com --roles SystemAdmin 

This example blocks a specified user.

$ efa auth user block-unblock --userName=testUser --isBlock=true

This example unblocks a specified user.

$ efa auth user block-unblock --userName=testUser --isBlock=false

This example resets a password. Not all of the output is shown here.

$ efa auth user reset --password testabc --resetLink eyJhbGciOiJSUzI1NiI......LQ 

This example requests a password reset for a specified user.

$ efa auth user request-reset-password --userName testabc --emailID testabc@gmail.com 

This example deletes a specified user.

$ efa auth user delete --userName testabc 
                
Deleted User configuration successfully. 
                
--- Time Elapsed: 405.54142ms --- 

This example lists active users with authentication type of HOST.

$ efa auth user show-active --authType=HOST 
                
+----------+-----------+-----------------------------------------+ 
                
| Username | Auth Type | Active Since                            | 
                
+----------+-----------+-----------------------------------------+ 
                
| anoop    | HOST      | 2022-03-07 10:01:52.094972524 +0530 IST | 
                
+----------+-----------+-----------------------------------------+