The following examples show the request and response that are defined in the XSD files for the AddSysAdminUser tag.
This request follows the AddSysAdminUser tag defined in the XSD files.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<XmlInterfaceRequest>
<AddSysAdminUser>
<SysAdminUser>
<Name>admin1</Name>
<Description>The default administrator user with all privileges</Description>
<Password>camiant</Password>
<LockedStatus>0</LockedStatus>
<RoleRef>
<Name>Administrator</Name>
</RoleRef>
<ScopeRef>
<Name>Global</Name>
</ScopeRef>
</SysAdminUser>
</AddSysAdminUser>
</XmlInterfaceRequest>
250 characters (string); can only contain the characters A–Z, a–z, 0–9, period (.), hyphen (-), and underline (_)
250 characters (string)
A clear text
0 = unlocked; 1 = locked
Can specify only one role
Can specify multiple scopes
This response follows the AddSysAdminUser tag defined in the XSD files.
<?xml version="1.0" ?> <Response> <Result>0</Result> <Command type="XmlInterfaceResponse"> <Success count="1">Successfully imported 1 User(s).</Success> <Failure count="0"></Failure> </Command> </Response>
Invalid User Name for: '{$UserName}'
UserName is an empty string.
Invalid Role Name for: '{$RoleName}'
RoleName is an empty string, or RoleName exceeds max length (250 characters), or there is more than one Role defined.
Invalid Scope Name for: '{$ScopeName}'
ScopeName is an empty string, or ScopeName is exceeds max length (250 characters).
The user: {$UserName}'s associated role does not exist. Please create it first.
RoleName is not defined in CMP.
.User: '{$Username}' must have an associated Role and Scope.
Non-Role or non-Scope is defined in OSSI command.
User Name exceeds max length for: '{$UserName}'
UserName exceeds max length (250 characters).
User Description exceeds max length. User: '{$UserName}'
Description exceeds max length (250 characters).
The user: {$UserName}'s associated scope does not exist. Please create it first.
ScopeName is not defined in CMP.
If the input OSSI command cannot match the schema specification, there is an error-message response to the operator. For example, if you define a LockStatus with a string, the following message is reported:
Error parsing import file: Error parsing import file: cvc-datatype-valid.1.2.1: 'ABC' is not a valid value for 'integer'.
This request follows the AddSysAdminUser tag defined in the XSD files.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<XmlInterfaceRequest>
<AddSysAdminUser>
<SysAdminUser>
<Name></Name>
<Description>The default administrator user with all privileges</Description>
<Password>oracle</Password>
<LockedStatus>0</LockedStatus>
<RoleRef>
<Name>Administrator</Name>
</RoleRef>
<ScopeRef>
<Name>Global</Name>
</ScopeRef>
</SysAdminUser>
</AddSysAdminUser>
</XmlInterfaceRequest>
The following error response occurs when the user name is invalid.
<?xml version="1.0" ?> <Response> <Result>0</Result> <Command type="XmlInterfaceResponse"> <Success count="0"></Success> <Failure count="1">Failed to import 1 User(s). Invalid User Name for: ""</Failure> </Command> </Response>
This request follows the AddSysAdminUser tag defined in the XSD files.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<XmlInterfaceRequest>
<AddSysAdminUser>
<SysAdminUser>
<Name>admin1</Name>
<Description>The default administrator user with all privileges</Description>
<Password>oracle</Password>
<LockedStatus>0</LockedStatus>
<RoleRef>
<Name></Name>
</RoleRef>
<ScopeRef>
<Name>Global</Name>
</ScopeRef>
</SysAdminUser>
</AddSysAdminUser>
</XmlInterfaceRequest>
The following error response occurs when the role name is invalid.
<?xml version="1.0" ?> <Response> <Result>0</Result> <Command type="XmlInterfaceResponse"> <Success count="0"></Success> <Failure count="1">Failed to import 1 User(s). <Invalid Role Name for: "admin1"</Failure> </Command> </Response>
This request follows the AddSysAdminUser tag defined in the XSD files.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<XmlInterfaceRequest>
<AddSysAdminUser>
<SysAdminUser>
<Name>admin1</Name>
<Description>The default administrator user with all privileges</Description>
<Password>oracle</Password>
<LockedStatus>0</LockedStatus>
<RoleRef>
<Name>Administrator</Name>
</RoleRef>
<ScopeRef>
<Name></Name>
</ScopeRef>
</SysAdminUser>
</AddSysAdminUser>
</XmlInterfaceRequest>
The following error response occurs when the scope name is invalid.
<?xml version="1.0" ?> <Response> <Result>0</Result> <Command type="XmlInterfaceResponse"> <Success count="0"></Success> <Failure count="1">Failed to import 1 User(s). Invalid Scope Name for: "admin1"</Failure> </Command> </Response>
This request follows the AddSysAdminUser tag defined in the XSD files.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<XmlInterfaceRequest>
<AddSysAdminUser>
<SysAdminUser>
<Name>admin1</Name>
<Description>The default administrator user with all privileges</Description>
<Password>oracle</Password>
<LockedStatus>0</LockedStatus>
<ScopeRef>
<Name>Not Exist Global</Name>
</ScopeRef>
</SysAdminUser>
</AddSysAdminUser>
</XmlInterfaceRequest>
The following error response occurs when the associated role does not exist for the user.
<?xml version="1.0" ?> <Response> <Result>0</Result> <Command type="XmlInterfaceResponse"> <Success count="0"></Success> <Failure count="1">Failed to import 1 User(s). User: "admin1" must have an associated Role and Scope.</Failure> </Command> </Response>
This request follows the AddSysAdminUser tag defined in the XSD files.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<XmlInterfaceRequest>
<AddSysAdminUser>
<SysAdminUser>
<Name>admin1</Name>
<Description>The default administrator user with all privileges</Description>
<Password>oracle</Password>
<LockedStatus>0</LockedStatus>
<RoleRef>
<Name>Not Exits Administrator</Name>
</RoleRef>
<ScopeRef>
<Name>Global</Name>
</ScopeRef>
</SysAdminUser>
</AddSysAdminUser>
</XmlInterfaceRequest>
The following error response occurs when the role does not exist for the user.
<?xml version="1.0" ?> <Response> <Result>0</Result> <Command type="XmlInterfaceResponse"> <Success count="0"></Success> <Failure count="1">Failed to import 1 User(s). The user: admin1's associated role does not exist. Please create it first.</Failure> </Command> </Response>
This request follows the AddSysAdminUser tag defined in the XSD files.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<XmlInterfaceRequest>
<AddSysAdminUser>
<SysAdminUser>
<Name>admin1</Name>
<Description>The default administrator user with all privileges</Description>
<Password>oracle</Password>
<LockedStatus>0</LockedStatus>
<RoleRef>
<Name>Administrator</Name>
</RoleRef>
<ScopeRef>
<Name>Not Exist Global</Name>
</ScopeRef>
</SysAdminUser>
</AddSysAdminUser>
</XmlInterfaceRequest>
The following error response occurs when the scope does not exist for the user.
<?xml version="1.0" ?> <Response> <Result>0</Result> <Command type="XmlInterfaceResponse"> <Success count="0"></Success> <Failure count="1">Failed to import 1 User(s). The user: admin1's associated scope does not exist. Please create it first.</Failure> </Command> </Response>