Home >

LunaSH Command Reference Guide > LunaSH Commands > user > user role clear

user role clear

Clears all roles assigned to an account. This command is available only to the ‘admin account and cannot be used to modify the admin, monitor or operator accounts. If user has only one role, then the effect is the same as the user role delete command. This command is infrastructure for possible future functionality.

Syntax

user role clear -username <username>

Option Short Parameter Description
-username -u <name of user> Specifies the name of the user account from which the role is being removed.
-force -f . Force the action. Useful for scripting.

Example

lunash:>user role clear  -username indigo
 
User indigo was successfully modified.
 
Command Result : 0 (Success)