Appendices : Accessing the CLI

Changing Users
To change user settings, use the changeusers command. This command is similar to the addusers command.
sgms> changeusers xml_file
Syntax
Table 91. Syntax
Usage Guidelines
The XML file can contain the following:
<? Xml version ="1.0" >
<Sgmscommand>
: <AddUsers>
: <AddUser>
: <UserAccountInfo>
: <Name>username</Name>
: <Password>password</Password>
: <UserTypeName>group</UserTypeName>
: <DefaultViewName>viewname</DefaultViewName>
: <FirstName>firstname</FirstName>
: <MiddleName>middlename</MiddleName>
: <LastName>lastname</LastName>
: <Phone>phone</Phone>
: <Fax>fax</Fax>
: <Email1>email</Email1>
: <Email2>email2</Email2>
: <Timeout>timeout_period</Timeout>
: </UserAccountInfo>
: <UserPermsInfo>
: <UserScreenList>
: <UserScreen pathname="screenpath" permtype="permission_type"> </UserScreen>
: </UserScreenList>
: <UserNodeList>
: <UserNode displayname="node" viewname="viewname" operationtype="optype"></UserNode>
: </UserNodeList>
: <UserActionList>
: <AddUnit>permission</AddUnit>
: <ModifyUnit>permission</ModifyUnit>
: <DeleteUnit>permission</DeleteUnit>
: <RenameUnit>permission</RenameUnit>
: <ModifyProperties>permission</ModifyProperties>
: <ReassignAgents>permission</ReassignAgents>
: <AddDeleteModifyView>permission</AddDeleteModifyView>
: <ChangeView>permission</ChangeView>
: <AllowCLI>permission</AllowCLI>
: </UserActionList>
: </UserPermsInfo>
: </AddUser>
: </AddUsers>
</Sgmscommand>
 
Table 92. Syntax
Name—username of the user.
Password—password of the user.
UserTypeName—user group to which the user belongs.
DefaultViewName—default view for the user.
FirstName—first name of the user.
MiddleName—middle name of the user.
LastName—last name of the user.
Phone—phone number of the user.
Fax—fax number of the user.
Email1—email address of the user.
Email2—email address of the user.
Timeout—idle-timeout setting for the user.
pathname—path to a screen. For example: “Console/Management/Users” or “Policies/Access/General.”
permtype—permissions for the screen. Options include: Read Only and Read/Write.
displayname—name of the node.
viewname—view in which the node appears.
AddUnit—specifies whether the user can add units (allow or deny).
ModifyUnit—specifies whether the user can modify units (allow or deny).
DeleteUnit—specifies whether the user can delete units (allow or deny).
RenameUnit—specifies whether the user can rename units (allow or deny).
ModifyProperties—specifies whether the user can modify unit properties (allow or deny).
ReassignAgents—specifies whether the user can reassign units to other agents (allow or deny).
AddDeleteModifyView—specifies whether the user can add, delete, or modify views (allow or deny).
ChangeView—specifies whether the user can change views (allow or deny).
AllowCLI—specifies whether the user can use the CLI (allow or deny).
Example
In the following example, new information is updated for the users Linda and Mike:
sgms> addusers linda.xml
The following is the content of linda-mike.xml.
<? Xml version ="1.0" >
<Sgmscommand>
: <AddUsers>
: <AddUser>
: <UserAccountInfo>
: <Name>Linda</Name>
: <Password>new-password</Password>
: <Phone>(408)555-1212</Phone>
: <Email1>linda@sonicwall.com</Email1>
: <Timeout>70</Timeout>
: </UserAccountInfo>
: </AddUser>
: <AddUser>
: <UserAccountInfo>
: <Name>Mike</Name>
: <Password>new-password</Password>
: <Phone>(408)555-1233</Phone>
: <Email1>mike@sonicwall.com</Email1>
: <Timeout>60</Timeout>
: </UserAccountInfo>
: </AddUser>
: </AddUsers>
</Sgmscommand>